public class PersistentEnumerator<Data> extends PersistentEnumeratorBase<Data>
PersistentEnumeratorBase.CorruptedException, PersistentEnumeratorBase.DataFilter, PersistentEnumeratorBase.RecordsProcessor, PersistentEnumeratorBase.Version, PersistentEnumeratorBase.VersionUpdatedException
LOG, myFile, myStorage, NULL_ID
Constructor and Description |
---|
PersistentEnumerator(java.nio.file.Path file,
KeyDescriptor<Data> dataDescriptor,
int initialSize) |
PersistentEnumerator(java.nio.file.Path file,
KeyDescriptor<Data> dataDescriptor,
int initialSize,
PagedFileStorage.StorageLockContext storageLockContext,
int version) |
Modifier and Type | Method and Description |
---|---|
protected int |
enumerateImpl(Data value,
boolean onlyCheckForExisting,
boolean saveNewValue) |
protected int |
indexToAddr(int idx) |
protected void |
setupEmptyFile() |
boolean |
traverseAllRecords(PersistentEnumeratorBase.RecordsProcessor p) |
protected int |
writeData(Data value,
int hashCode) |
clearCacheForTests, close, doClose, doFlush, doWriteData, enumerate, force, getAllDataObjects, getLargestId, getMetaData, getValue, isClosed, isCorrupted, isDirty, isKeyAtIndex, iterateData, markCorrupted, markDirty, processAllDataObject, putMetaData, setRecordHandler, setupValueId, tryEnumerate, valueOf
public PersistentEnumerator(java.nio.file.Path file, KeyDescriptor<Data> dataDescriptor, int initialSize) throws java.io.IOException
java.io.IOException
public PersistentEnumerator(java.nio.file.Path file, KeyDescriptor<Data> dataDescriptor, int initialSize, PagedFileStorage.StorageLockContext storageLockContext, int version) throws java.io.IOException
java.io.IOException
protected void setupEmptyFile() throws java.io.IOException
setupEmptyFile
in class PersistentEnumeratorBase<Data>
java.io.IOException
public boolean traverseAllRecords(PersistentEnumeratorBase.RecordsProcessor p) throws java.io.IOException
traverseAllRecords
in class PersistentEnumeratorBase<Data>
java.io.IOException
protected int enumerateImpl(Data value, boolean onlyCheckForExisting, boolean saveNewValue) throws java.io.IOException
enumerateImpl
in class PersistentEnumeratorBase<Data>
java.io.IOException
protected int writeData(Data value, int hashCode)
writeData
in class PersistentEnumeratorBase<Data>
protected int indexToAddr(int idx)
indexToAddr
in class PersistentEnumeratorBase<Data>