Skip to content

Instantly share code, notes, and snippets.

@victorbrndls
Created February 7, 2022 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorbrndls/f71f56f8ad072a421a5ea5cb7d4c52e0 to your computer and use it in GitHub Desktop.
Save victorbrndls/f71f56f8ad072a421a5ea5cb7d4c52e0 to your computer and use it in GitHub Desktop.
// MemoryRemoteDocumentCache.java
while (iterator.hasNext()) {
...
if (!query.matches(doc)) {
continue;
}
result = result.insert(doc.getKey(), doc.clone());
}
// SQLiteRemoteDocumentCache.java
sqlQuery.forEach(
row -> {
...
if (document.isFoundDocument() && query.matches(document)) {
...
}
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment