@@ -146,9 +146,9 @@ public boolean servedByIndex(FieldIndex index) {
146
146
147
147
// Process all equalities first. Equalities can appear out of order.
148
148
for (; segmentIndex < segments .size (); ++segmentIndex ) {
149
- // We attempt to greedily match all segments to equality filters. If a a filter matches an
150
- // index segments , we can mark the segment as used. Since it is not possible to use the same
151
- // filed path in both an equality and inequality/oderBy cause , we do not have to consider the
149
+ // We attempt to greedily match all segments to equality filters. If a filter matches an
150
+ // index segment , we can mark the segment as used. Since it is not possible to use the same
151
+ // field path in both an equality and inequality/oderBy clause , we do not have to consider the
152
152
// possibility that a matching equality segment should instead be used to map to an inequality
153
153
// filter or orderBy clause.
154
154
if (!hasMatchingEqualityFilter (segments .get (segmentIndex ))) {
@@ -166,7 +166,7 @@ public boolean servedByIndex(FieldIndex index) {
166
166
}
167
167
168
168
// If there is an inequality filter, the next segment must match both the filter and the first
169
- // orderBy clause.
169
+ // orderBy clause.
170
170
if (inequalityFilter != null ) {
171
171
FieldIndex .Segment segment = segments .get (segmentIndex );
172
172
if (!matchesFilter (inequalityFilter , segment ) || !matchesOrderBy (orderBys .next (), segment )) {
@@ -175,7 +175,7 @@ public boolean servedByIndex(FieldIndex index) {
175
175
++segmentIndex ;
176
176
}
177
177
178
- // All remaining segment need to represent the prefix of the target's orderBy
178
+ // All remaining segments need to represent the prefix of the target's orderBy.
179
179
for (; segmentIndex < segments .size (); ++segmentIndex ) {
180
180
FieldIndex .Segment segment = segments .get (segmentIndex );
181
181
if (!orderBys .hasNext () || !matchesOrderBy (orderBys .next (), segment )) {
0 commit comments