@FunctionalInterface public static interface StorageDataFileItemIterator.BufferProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
StorageDataFileItemIterator.BufferProvider.ConstantSizedBufferProvider
Simple implementation that provides always the same
ByteBuffer instance with a fixed size. |
| Modifier and Type | Method and Description |
|---|---|
default void |
cleanUp() |
static StorageDataFileItemIterator.BufferProvider |
New() |
static StorageDataFileItemIterator.BufferProvider |
NewConstantSized(int bufferCapacity) |
ByteBuffer |
provideBuffer(ByteBuffer byteBuffer,
long nextEntityLength)
The passed and returned byte buffer instances are guaranteed to be direct bytebuffer.
|
default ByteBuffer |
provideInitialBuffer() |
default ByteBuffer provideInitialBuffer()
ByteBuffer provideBuffer(ByteBuffer byteBuffer, long nextEntityLength)
provideInitialBuffer().byteBuffer - the direct byte buffer used so far.nextEntityLength - the length of the next entity to be read to the buffer.default void cleanUp()
static StorageDataFileItemIterator.BufferProvider New()
static StorageDataFileItemIterator.BufferProvider NewConstantSized(int bufferCapacity)
Copyright © 2022 MicroStream Software. All rights reserved.