nit0906 commented on code in PR #1101:
URL: https://github.com/apache/jackrabbit-oak/pull/1101#discussion_r1316896497


##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/DocumentStoreIndexerBase.java:
##########
@@ -206,6 +208,26 @@ private List<FlatFileStore> 
buildFlatFileStoreList(NodeState checkpointedState,
         return storeList;
     }
 
+    private IncrementalStore buildIncrementalStore(String initialCheckpoint, 
String finalCheckpoint, Predicate<String> pathPredicate, Set<String> 
preferredPathElements) throws IOException {
+        IncrementalStoreBuilder builder = null;
+        IncrementalStore incrementalStore = null;
+        Stopwatch flatFileStoreWatch = Stopwatch.createStarted();
+        MemoryManager memoryManager = new DefaultMemoryManager();
+        try {
+            builder = new IncrementalStoreBuilder(indexHelper.getWorkDir(), 
memoryManager, indexHelper)
+                    .withPreferredPathElements(preferredPathElements)
+                    .withPathPredicate(pathPredicate)
+                    .withInitialCheckpoint(initialCheckpoint)
+                    .withFinalCheckpoint(finalCheckpoint);
+            incrementalStore = builder.build();
+            closer.register(incrementalStore);
+        } catch (Exception e) {
+            throw new IOException("Could not build flat file store", e);
+        }
+        log.info("Completed the flat file store build in {}", 
flatFileStoreWatch);

Review Comment:
   the log message can be changed a bit to denote this is incremental FFS 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to