T
- Unguarded form of the descriptorspublic interface UnguardedPagedStorage<T extends Serializable> extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getDescriptorAsString(int index,
boolean recognizeArrays)
Retrieve descriptor as String.
|
T |
getUnguardedDescriptor(int index)
Retrieve a descriptor.
|
UnmodifiableIterator<ImmutableList<T>> |
iterateDescriptorPages()
Iterate descriptor pages.
|
UnmodifiableIterator<ImmutableList<T>> |
iterateDescriptorPages(int pagesize)
Iterate descriptor pages.
|
UnmodifiableIterator<T> |
iterateDescriptors()
Iterate descriptors.
|
int |
size()
Total number of descriptors stored.
|
void |
traverse(UnguardedVisitor<T> visitor,
SubProgressObserver po)
Traverse storage on single thread.
|
int size()
UnmodifiableIterator<T> iterateDescriptors()
UnmodifiableIterator<ImmutableList<T>> iterateDescriptorPages(int pagesize)
pagesize
- Number of descriptors to page togetherUnmodifiableIterator<ImmutableList<T>> iterateDescriptorPages()
void traverse(UnguardedVisitor<T> visitor, SubProgressObserver po)
Note that the callback must not modify passed descriptors.
visitor
- Callback to invokepo
- ProgressObserver to track progress. Upon completion ProgressObserver.done()
will be invoked.String getDescriptorAsString(int index, boolean recognizeArrays)
This operation is recommended for debug only. Execution might be slow.
index
- Index of descriptorrecognizeArrays
- Recognize arrays and traverse its elementsT getUnguardedDescriptor(int index)
index
- Descriptor index