Skip to content

Commit 4ebbad9

Browse files
change parent to x, and child to y, everywhere.
1 parent ba71dd0 commit 4ebbad9

File tree

7 files changed

+443
-441
lines changed

7 files changed

+443
-441
lines changed

Microsoft.Azure.Cosmos.Encryption.Custom/src/EncryptionContainer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,13 +1031,13 @@ public override ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilderWithAllV
10311031

10321032
#if SDKPROJECTREF
10331033
public override Task<bool> IsFeedRangePartOfAsync(
1034-
Cosmos.FeedRange parentFeedRange,
1035-
Cosmos.FeedRange childFeedRange,
1034+
Cosmos.FeedRange x,
1035+
Cosmos.FeedRange y,
10361036
CancellationToken cancellationToken = default)
10371037
{
10381038
return this.container.IsFeedRangePartOfAsync(
1039-
parentFeedRange,
1040-
childFeedRange,
1039+
x,
1040+
y,
10411041
cancellationToken);
10421042
}
10431043
#endif

Microsoft.Azure.Cosmos.Encryption/src/EncryptionContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ public override ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilderWithAllV
764764
}
765765

766766
public override Task<bool> IsFeedRangePartOfAsync(
767-
Cosmos.FeedRange parentFeedRange,
768-
Cosmos.FeedRange childFeedRange,
767+
Cosmos.FeedRange x,
768+
Cosmos.FeedRange y,
769769
CancellationToken cancellationToken = default)
770770
{
771771
throw new NotImplementedException();

Microsoft.Azure.Cosmos/src/Resource/Container/Container.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,6 +1808,10 @@ public abstract ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilderWithAllV
18081808
/// </code>
18091809
/// </example>
18101810
/// <returns>True if the y feed range is a part of the x feed range; otherwise, false.</returns>
1811+
/// <param name="x">The broader feed range representing the larger, encompassing logical partition.</param>
1812+
/// <param name="y">The smaller, more granular feed range that needs to be checked for containment within the broader feed range.</param>
1813+
/// <param name="cancellationToken">An optional cancellation token to cancel the operation before completion.</param>
1814+
/// <returns>Returns a boolean indicating whether the y feed range is fully contained within the x feed range.</returns>
18111815
public virtual Task<bool> IsFeedRangePartOfAsync(
18121816
Cosmos.FeedRange x,
18131817
Cosmos.FeedRange y,

Microsoft.Azure.Cosmos/src/Resource/Container/ContainerCore.Items.cs

Lines changed: 99 additions & 101 deletions
Large diffs are not rendered by default.

Microsoft.Azure.Cosmos/src/Resource/Container/ContainerInlineCore.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ public override Task<ResponseMessage> DeleteAllItemsByPartitionKeyStreamAsync(
679679
}
680680

681681
public override Task<bool> IsFeedRangePartOfAsync(
682-
FeedRange parentFeedRange,
683-
FeedRange childFeedRange,
682+
FeedRange x,
683+
FeedRange y,
684684
CancellationToken cancellationToken = default)
685685
{
686686
// TODO: The current use of Documents.OperationType.ReadFeed is not a precise fit for this operation.
@@ -693,8 +693,8 @@ public override Task<bool> IsFeedRangePartOfAsync(
693693
operationType: Documents.OperationType.ReadFeed,
694694
requestOptions: null,
695695
task: (trace) => base.IsFeedRangePartOfAsync(
696-
parentFeedRange: parentFeedRange,
697-
childFeedRange: childFeedRange,
696+
x,
697+
y,
698698
cancellationToken: cancellationToken));
699699
}
700700
}

Microsoft.Azure.Cosmos/src/Resource/Container/ContainerInternal.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public abstract ChangeFeedProcessorBuilder GetChangeFeedProcessorBuilderWithAllV
153153
ChangeFeedHandler<ChangeFeedItem<T>> onChangesDelegate);
154154

155155
public abstract Task<bool> IsFeedRangePartOfAsync(
156-
Cosmos.FeedRange parentFeedRange,
157-
Cosmos.FeedRange childFeedRange,
156+
Cosmos.FeedRange x,
157+
Cosmos.FeedRange y,
158158
CancellationToken cancellationToken = default);
159159
#endif
160160

0 commit comments

Comments
 (0)