Class FlatFileStore
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.FlatFileStore
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<NodeStateEntry>
,IndexStore
- Direct Known Subclasses:
IncrementalFlatFileStore
public class FlatFileStore extends Object implements IndexStore
-
-
Constructor Summary
Constructors Constructor Description FlatFileStore(BlobStore blobStore, File storeFile, File metadataFile, NodeStateEntryReader entryReader, Set<String> preferredPathElements, Compression algorithm)
FlatFileStore(BlobStore blobStore, File storeFile, NodeStateEntryReader entryReader, Set<String> preferredPathElements, Compression algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Compression
getAlgorithm()
long
getEntryCount()
String
getFlatFileStorePath()
Deprecated.usegetStorePath()
insteadString
getIndexStoreType()
String
getMetadataFilePath()
File
getStoreFile()
String
getStorePath()
boolean
isIncremental()
Iterator<NodeStateEntry>
iterator()
void
setEntryCount(long entryCount)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
FlatFileStore
public FlatFileStore(BlobStore blobStore, File storeFile, File metadataFile, NodeStateEntryReader entryReader, Set<String> preferredPathElements, Compression algorithm)
-
FlatFileStore
public FlatFileStore(BlobStore blobStore, File storeFile, NodeStateEntryReader entryReader, Set<String> preferredPathElements, Compression algorithm)
-
-
Method Detail
-
getStorePath
public String getStorePath()
- Specified by:
getStorePath
in interfaceIndexStore
-
getStoreFile
public File getStoreFile()
-
getFlatFileStorePath
@Deprecated public String getFlatFileStorePath()
Deprecated.usegetStorePath()
instead
-
getEntryCount
public long getEntryCount()
- Specified by:
getEntryCount
in interfaceIndexStore
-
setEntryCount
public void setEntryCount(long entryCount)
- Specified by:
setEntryCount
in interfaceIndexStore
-
getMetadataFilePath
public String getMetadataFilePath()
-
iterator
public Iterator<NodeStateEntry> iterator()
- Specified by:
iterator
in interfaceIndexStore
- Specified by:
iterator
in interfaceIterable<NodeStateEntry>
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceIndexStore
- Throws:
IOException
-
getIndexStoreType
public String getIndexStoreType()
- Specified by:
getIndexStoreType
in interfaceIndexStore
-
isIncremental
public boolean isIncremental()
- Specified by:
isIncremental
in interfaceIndexStore
-
getAlgorithm
public Compression getAlgorithm()
-
-