public class PersistentEnumerator<Data> extends PersistentEnumeratorBase<Data>
PersistentEnumeratorBase.CorruptedException, PersistentEnumeratorBase.DataFilter, PersistentEnumeratorBase.RecordsProcessor, PersistentEnumeratorBase.Version, PersistentEnumeratorBase.VersionUpdatedExceptionLOG, 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, valueOfpublic PersistentEnumerator(java.nio.file.Path file,
KeyDescriptor<Data> dataDescriptor,
int initialSize)
throws java.io.IOException
java.io.IOExceptionpublic PersistentEnumerator(java.nio.file.Path file,
KeyDescriptor<Data> dataDescriptor,
int initialSize,
PagedFileStorage.StorageLockContext storageLockContext,
int version)
throws java.io.IOException
java.io.IOExceptionprotected void setupEmptyFile()
throws java.io.IOException
setupEmptyFile in class PersistentEnumeratorBase<Data>java.io.IOExceptionpublic boolean traverseAllRecords(PersistentEnumeratorBase.RecordsProcessor p) throws java.io.IOException
traverseAllRecords in class PersistentEnumeratorBase<Data>java.io.IOExceptionprotected int enumerateImpl(Data value, boolean onlyCheckForExisting, boolean saveNewValue) throws java.io.IOException
enumerateImpl in class PersistentEnumeratorBase<Data>java.io.IOExceptionprotected int writeData(Data value, int hashCode)
writeData in class PersistentEnumeratorBase<Data>protected int indexToAddr(int idx)
indexToAddr in class PersistentEnumeratorBase<Data>