Class SlowStore
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.tree.store.SlowStore
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.index.indexer.document.tree.store.Store
DEFAULT_MAX_FILE_SIZE_BYTES, MAX_FILE_SIZE_BYTES
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the storebyte[]getBytes(String key)PropertiesgetConfig()PageFilegetIfExists(String key)Get a file if it existslonggetMaxFileSizeBytes()Get the maximum file size configured.longgetReadCount()Get the number of files read.longgetWriteCount()Get the number of files written.Set<String>keySet()Get the list of files.StringnewFileName()Generate a new file name.voidput(String key, PageFile value)Storage a file.voidputBytes(String key, byte[] data)voidremove(Set<String> set)Remove a number of files.voidremoveAll()Remove all files.voidsetWriteCompression(Compression compression)Set the compression algorithm used for writing from now on.booleansupportsByteOperations()StringtoString()
-
-
-
Method Detail
-
getIfExists
public PageFile getIfExists(String key)
Description copied from interface:StoreGet a file if it exists- Specified by:
getIfExistsin interfaceStore- Parameters:
key- the file name- Returns:
- the file, or null
-
put
public void put(String key, PageFile value)
Description copied from interface:StoreStorage a file.
-
newFileName
public String newFileName()
Description copied from interface:StoreGenerate a new file name.- Specified by:
newFileNamein interfaceStore- Returns:
-
remove
public void remove(Set<String> set)
Description copied from interface:StoreRemove a number of files.
-
removeAll
public void removeAll()
Description copied from interface:StoreRemove all files.
-
getWriteCount
public long getWriteCount()
Description copied from interface:StoreGet the number of files written.- Specified by:
getWriteCountin interfaceStore- Returns:
- the result
-
getReadCount
public long getReadCount()
Description copied from interface:StoreGet the number of files read.- Specified by:
getReadCountin interfaceStore- Returns:
- the result
-
setWriteCompression
public void setWriteCompression(Compression compression)
Description copied from interface:StoreSet the compression algorithm used for writing from now on.- Specified by:
setWriteCompressionin interfaceStore- Parameters:
compression- the compression algorithm
-
close
public void close()
Description copied from interface:StoreClose the store
-
getConfig
public Properties getConfig()
-
supportsByteOperations
public boolean supportsByteOperations()
- Specified by:
supportsByteOperationsin interfaceStore
-
getMaxFileSizeBytes
public long getMaxFileSizeBytes()
Description copied from interface:StoreGet the maximum file size configured.- Specified by:
getMaxFileSizeBytesin interfaceStore- Returns:
- the file size, in bytes
-
-