Class IncrementalFlatFileStoreStrategy
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.incrementalstore.IncrementalFlatFileStoreStrategy
-
- All Implemented Interfaces:
SortStrategy,IncrementalIndexStoreSortStrategy
public class IncrementalFlatFileStoreStrategy extends Object implements IncrementalIndexStoreSortStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static StringOAK_INDEXER_DELETE_ORIGINAL
-
Constructor Summary
Constructors Constructor Description IncrementalFlatFileStoreStrategy(NodeStore nodeStore, @NotNull String beforeCheckpoint, @NotNull String afterCheckpoint, File storeDir, Set<String> preferredPathElements, @NotNull Compression algorithm, Predicate<String> pathPredicate, IncrementalFlatFileStoreNodeStateEntryWriter entryWriter, long maxDurationSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilecreateMetadataFile()FilecreateSortedStoreFile()StringgetAfterCheckpoint()StringgetBeforeCheckpoint()longgetEntryCount()Predicate<String>getPathPredicate()Set<String>getPreferredPaths()StringgetStoreType()StringgetStrategyName()longgetTextSize()voidincrementEntryCount()voidsetTextSize(long textSize)
-
-
-
Field Detail
-
OAK_INDEXER_DELETE_ORIGINAL
public static final String OAK_INDEXER_DELETE_ORIGINAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IncrementalFlatFileStoreStrategy
public IncrementalFlatFileStoreStrategy(NodeStore nodeStore, @NotNull @NotNull String beforeCheckpoint, @NotNull @NotNull String afterCheckpoint, File storeDir, Set<String> preferredPathElements, @NotNull @NotNull Compression algorithm, Predicate<String> pathPredicate, IncrementalFlatFileStoreNodeStateEntryWriter entryWriter, long maxDurationSeconds)
-
-
Method Detail
-
createSortedStoreFile
public File createSortedStoreFile() throws IOException
- Specified by:
createSortedStoreFilein interfaceIncrementalIndexStoreSortStrategy- Specified by:
createSortedStoreFilein interfaceSortStrategy- Throws:
IOException
-
createMetadataFile
public File createMetadataFile() throws IOException
- Specified by:
createMetadataFilein interfaceIncrementalIndexStoreSortStrategy- Throws:
IOException
-
getStrategyName
public String getStrategyName()
- Specified by:
getStrategyNamein interfaceIncrementalIndexStoreSortStrategy
-
getStoreType
public String getStoreType()
- Specified by:
getStoreTypein interfaceIncrementalIndexStoreSortStrategy
-
getBeforeCheckpoint
public String getBeforeCheckpoint()
- Specified by:
getBeforeCheckpointin interfaceIncrementalIndexStoreSortStrategy
-
getAfterCheckpoint
public String getAfterCheckpoint()
- Specified by:
getAfterCheckpointin interfaceIncrementalIndexStoreSortStrategy
-
getPreferredPaths
public Set<String> getPreferredPaths()
- Specified by:
getPreferredPathsin interfaceIncrementalIndexStoreSortStrategy
-
getPathPredicate
public Predicate<String> getPathPredicate()
- Specified by:
getPathPredicatein interfaceIncrementalIndexStoreSortStrategy
-
getEntryCount
public long getEntryCount()
- Specified by:
getEntryCountin interfaceIncrementalIndexStoreSortStrategy- Specified by:
getEntryCountin interfaceSortStrategy
-
incrementEntryCount
public void incrementEntryCount()
-
setTextSize
public void setTextSize(long textSize)
-
getTextSize
public long getTextSize()
-
-