Interface StorageDataFileItemIterator.BufferProvider

    • Method Detail

      • provideInitialBuffer

        default ByteBuffer provideInitialBuffer()
      • provideBuffer

        ByteBuffer provideBuffer​(ByteBuffer byteBuffer,
                                 long nextEntityLength)
        The passed and returned byte buffer instances are guaranteed to be direct bytebuffer. This has to be ensured via contract instead of proper typing because of the lack of competent typing in the JDK. All byte buffer instances passed to this method are guaranteed to have been created by it. See provideInitialBuffer().
        Parameters:
        byteBuffer - the direct byte buffer used so far.
        nextEntityLength - the length of the next entity to be read to the buffer.
        Returns:
        a byte buffer of appropriate size to hold the next entity's data to be processed sufficiently.
      • cleanUp

        default void cleanUp()