File tree 2 files changed +6
-4
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/local 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 33
33
*/
34
34
public interface IndexManager {
35
35
/** Represents the index state as it relates to a particular target. */
36
- public enum IndexType {
36
+ enum IndexType {
37
37
/** Indicates that no index could be found for serving the target. */
38
38
NONE ,
39
39
/**
Original file line number Diff line number Diff line change @@ -313,17 +313,19 @@ public IndexOffset getMinOffset(String collectionGroup) {
313
313
314
314
@ Override
315
315
public IndexType getIndexType (Target target ) {
316
+ IndexType result = IndexType .FULL ;
316
317
for (Target subTarget : getSubTargets (target )) {
317
318
FieldIndex index = getFieldIndex (subTarget );
318
319
if (index == null ) {
319
- return IndexType .NONE ;
320
+ result = IndexType .NONE ;
321
+ break ;
320
322
}
321
323
322
324
if (index .getSegments ().size () < subTarget .getSegmentCount ()) {
323
- return IndexType .PARTIAL ;
325
+ result = IndexType .PARTIAL ;
324
326
}
325
327
}
326
- return IndexType . FULL ;
328
+ return result ;
327
329
}
328
330
329
331
@ Override
You can’t perform that action at this time.
0 commit comments