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.IOExceptionpublic PersistentEnumeratorDelegate(java.nio.file.Path file,
                                    KeyDescriptor<Data> dataDescriptor,
                                    int initialSize,
                                    PagedFileStorage.StorageLockContext lockContext)
                             throws java.io.IOException
java.io.IOExceptionpublic PersistentEnumeratorDelegate(java.io.File file,
                                    KeyDescriptor<Data> dataDescriptor,
                                    int initialSize,
                                    PagedFileStorage.StorageLockContext lockContext,
                                    int version)
                             throws java.io.IOException
java.io.IOExceptionpublic PersistentEnumeratorDelegate(java.nio.file.Path file,
                                    KeyDescriptor<Data> dataDescriptor,
                                    int initialSize,
                                    PagedFileStorage.StorageLockContext lockContext,
                                    int version)
                             throws java.io.IOException
java.io.IOExceptionpublic static int getVersion()
public static boolean useBtree()
public void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic boolean isClosed()
public final void markDirty()
                     throws java.io.IOException
java.io.IOExceptionpublic boolean isCorrupted()
public void markCorrupted()
public Data valueOf(int id) throws java.io.IOException
valueOf in interface DataEnumerator<Data>java.io.IOExceptionpublic int enumerate(Data name) throws java.io.IOException
enumerate in interface DataEnumerator<Data>java.io.IOExceptionpublic int tryEnumerate(Data name) throws java.io.IOException
tryEnumerate in interface DataEnumeratorEx<Data>java.io.IOExceptionpublic boolean traverseAllRecords(PersistentEnumeratorBase.RecordsProcessor recordsProcessor) throws java.io.IOException
java.io.IOExceptionpublic java.util.Collection<Data> getAllDataObjects(PersistentEnumeratorBase.DataFilter filter) throws java.io.IOException
java.io.IOException