|
24 | 24 | import com.google.firebase.firestore.model.DocumentKey;
|
25 | 25 | import com.google.firebase.firestore.model.MaybeDocument;
|
26 | 26 | import com.google.firebase.firestore.model.SnapshotVersion;
|
27 |
| -import com.google.firebase.firestore.util.Logger; |
28 | 27 | import java.util.Collections;
|
29 | 28 | import java.util.Map;
|
30 | 29 |
|
|
52 | 51 | * </ol>
|
53 | 52 | */
|
54 | 53 | public class IndexFreeQueryEngine implements QueryEngine {
|
55 |
| - private static final String LOG_TAG = "IndexFreeQueryEngine"; |
56 |
| - |
57 | 54 | private LocalDocumentsView localDocumentsView;
|
58 | 55 |
|
59 | 56 | @Override
|
@@ -86,14 +83,6 @@ && needsRefill(previousResults, remoteKeys, queryData.getLastLimboFreeSnapshotVe
|
86 | 83 | return executeFullCollectionScan(query);
|
87 | 84 | }
|
88 | 85 |
|
89 |
| - if (Logger.isDebugEnabled()) { |
90 |
| - Logger.debug( |
91 |
| - LOG_TAG, |
92 |
| - "Re-using previous result from %s to execute query: %s", |
93 |
| - queryData.getLastLimboFreeSnapshotVersion().toString(), |
94 |
| - query.toString()); |
95 |
| - } |
96 |
| - |
97 | 86 | // Retrieve all results for documents that were updated since the last limbo-document free
|
98 | 87 | // remote snapshot.
|
99 | 88 | ImmutableSortedMap<DocumentKey, Document> updatedResults =
|
@@ -172,9 +161,6 @@ public void handleDocumentChange(MaybeDocument oldDocument, MaybeDocument newDoc
|
172 | 161 | }
|
173 | 162 |
|
174 | 163 | private ImmutableSortedMap<DocumentKey, Document> executeFullCollectionScan(Query query) {
|
175 |
| - if (Logger.isDebugEnabled()) { |
176 |
| - Logger.debug(LOG_TAG, "Using full collection scan to execute query: %s", query.toString()); |
177 |
| - } |
178 | 164 | return localDocumentsView.getDocumentsMatchingQuery(query, SnapshotVersion.NONE);
|
179 | 165 | }
|
180 | 166 | }
|
0 commit comments