public static final class StorageDataFileItemIterator.BufferProvider.ConstantSizedBufferProvider extends Object implements StorageDataFileItemIterator.BufferProvider
ByteBuffer instance with a fixed size.
This is sufficient for reading all entity headers and having the data available for caching of "small"
entities. Normally, the buffer size is downwards capped at the system's page size which also proved
to be the optimal buffer size (anything large gives no significant advantage, anything lower dramatically
reduces performance. Both not surprising, given the fundamental meaning of a page size).StorageDataFileItemIterator.BufferProvider.ConstantSizedBufferProvider| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
provideBuffer(ByteBuffer byteBuffer,
long nextEntityLength)
The passed and returned byte buffer instances are guaranteed to be direct bytebuffer.
|
ByteBuffer |
provideInitialBuffer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanUp, New, NewConstantSizedpublic final ByteBuffer provideInitialBuffer()
provideInitialBuffer in interface StorageDataFileItemIterator.BufferProviderpublic final ByteBuffer provideBuffer(ByteBuffer byteBuffer, long nextEntityLength)
StorageDataFileItemIterator.BufferProviderStorageDataFileItemIterator.BufferProvider.provideInitialBuffer().provideBuffer in interface StorageDataFileItemIterator.BufferProviderbyteBuffer - the direct byte buffer used so far.nextEntityLength - the length of the next entity to be read to the buffer.Copyright © 2022 MicroStream Software. All rights reserved.