Class StorageDataFileItemIterator.BufferProvider.ConstantSizedBufferProvider

  • All Implemented Interfaces:
    StorageDataFileItemIterator.BufferProvider
    Enclosing interface:
    StorageDataFileItemIterator.BufferProvider

    public static final class StorageDataFileItemIterator.BufferProvider.ConstantSizedBufferProvider
    extends Object
    implements StorageDataFileItemIterator.BufferProvider
    Simple implementation that provides always the same 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).