public class PersistentEnumeratorDelegate<Data> extends java.lang.Object implements DataEnumeratorEx<Data>, java.io.Closeable, Forceable
Modifier and Type | Field and Description |
---|---|
protected PersistentEnumeratorBase<Data> |
myEnumerator |
Constructor and Description |
---|
PersistentEnumeratorDelegate(java.io.File file,
KeyDescriptor<Data> dataDescriptor,
int initialSize,
PagedFileStorage.StorageLockContext lockContext,
int version) |
PersistentEnumeratorDelegate(java.nio.file.Path file,
KeyDescriptor<Data> dataDescriptor,
int initialSize) |
PersistentEnumeratorDelegate(java.nio.file.Path file,
KeyDescriptor<Data> dataDescriptor,
int initialSize,
PagedFileStorage.StorageLockContext lockContext) |
PersistentEnumeratorDelegate(java.nio.file.Path file,
KeyDescriptor<Data> dataDescriptor,
int initialSize,
PagedFileStorage.StorageLockContext lockContext,
int version) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
enumerate(Data name) |
void |
force() |
java.util.Collection<Data> |
getAllDataObjects(PersistentEnumeratorBase.DataFilter filter) |
static int |
getVersion() |
boolean |
isClosed() |
boolean |
isCorrupted() |
boolean |
isDirty() |
void |
markCorrupted() |
void |
markDirty() |
boolean |
traverseAllRecords(PersistentEnumeratorBase.RecordsProcessor recordsProcessor) |
int |
tryEnumerate(Data name) |
static boolean |
useBtree() |
Data |
valueOf(int id) |
protected final PersistentEnumeratorBase<Data> myEnumerator
public PersistentEnumeratorDelegate(java.nio.file.Path file, KeyDescriptor<Data> dataDescriptor, int initialSize) throws java.io.IOException
java.io.IOException
public PersistentEnumeratorDelegate(java.nio.file.Path file, KeyDescriptor<Data> dataDescriptor, int initialSize, PagedFileStorage.StorageLockContext lockContext) throws java.io.IOException
java.io.IOException
public PersistentEnumeratorDelegate(java.io.File file, KeyDescriptor<Data> dataDescriptor, int initialSize, PagedFileStorage.StorageLockContext lockContext, int version) throws java.io.IOException
java.io.IOException
public PersistentEnumeratorDelegate(java.nio.file.Path file, KeyDescriptor<Data> dataDescriptor, int initialSize, PagedFileStorage.StorageLockContext lockContext, int version) throws java.io.IOException
java.io.IOException
public static int getVersion()
public static boolean useBtree()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public boolean isClosed()
public final void markDirty() throws java.io.IOException
java.io.IOException
public boolean isCorrupted()
public void markCorrupted()
public Data valueOf(int id) throws java.io.IOException
valueOf
in interface DataEnumerator<Data>
java.io.IOException
public int enumerate(Data name) throws java.io.IOException
enumerate
in interface DataEnumerator<Data>
java.io.IOException
public int tryEnumerate(Data name) throws java.io.IOException
tryEnumerate
in interface DataEnumeratorEx<Data>
java.io.IOException
public boolean traverseAllRecords(PersistentEnumeratorBase.RecordsProcessor recordsProcessor) throws java.io.IOException
java.io.IOException
public java.util.Collection<Data> getAllDataObjects(PersistentEnumeratorBase.DataFilter filter) throws java.io.IOException
java.io.IOException