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 String
OAK_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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
createMetadataFile()
File
createSortedStoreFile()
String
getAfterCheckpoint()
String
getBeforeCheckpoint()
long
getEntryCount()
Predicate<String>
getPathPredicate()
Set<String>
getPreferredPaths()
String
getStoreType()
String
getStrategyName()
long
getTextSize()
void
incrementEntryCount()
void
setTextSize(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)
-
-
Method Detail
-
createSortedStoreFile
public File createSortedStoreFile() throws IOException
- Specified by:
createSortedStoreFile
in interfaceIncrementalIndexStoreSortStrategy
- Specified by:
createSortedStoreFile
in interfaceSortStrategy
- Throws:
IOException
-
createMetadataFile
public File createMetadataFile() throws IOException
- Specified by:
createMetadataFile
in interfaceIncrementalIndexStoreSortStrategy
- Throws:
IOException
-
getStrategyName
public String getStrategyName()
- Specified by:
getStrategyName
in interfaceIncrementalIndexStoreSortStrategy
-
getStoreType
public String getStoreType()
- Specified by:
getStoreType
in interfaceIncrementalIndexStoreSortStrategy
-
getBeforeCheckpoint
public String getBeforeCheckpoint()
- Specified by:
getBeforeCheckpoint
in interfaceIncrementalIndexStoreSortStrategy
-
getAfterCheckpoint
public String getAfterCheckpoint()
- Specified by:
getAfterCheckpoint
in interfaceIncrementalIndexStoreSortStrategy
-
getPreferredPaths
public Set<String> getPreferredPaths()
- Specified by:
getPreferredPaths
in interfaceIncrementalIndexStoreSortStrategy
-
getPathPredicate
public Predicate<String> getPathPredicate()
- Specified by:
getPathPredicate
in interfaceIncrementalIndexStoreSortStrategy
-
getEntryCount
public long getEntryCount()
- Specified by:
getEntryCount
in interfaceIncrementalIndexStoreSortStrategy
- Specified by:
getEntryCount
in interfaceSortStrategy
-
incrementEntryCount
public void incrementEntryCount()
-
setTextSize
public void setTextSize(long textSize)
-
getTextSize
public long getTextSize()
-
-