Class CellReader.Builder

  • Enclosing class:
    CellReader

    public static class CellReader.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder​(ByteBuffer originalByteBuffer)
        The default block size is 64k as provided by NativeClearedByteBufferProvider. You may change this, but be sure the size of the ByteBuffers match what the CelLWriter used as this is the block size stored. All reading will fail unpredictably if a different block size is used when reading
        Parameters:
        originalByteBuffer - - buffer from CellWriter.writeTo() as written to the WritableChannel
    • Method Detail

      • setCompressionStrategy

        public CellReader.Builder setCompressionStrategy​(CompressionStrategy compressionStrategy)
        Parameters:
        compressionStrategy - - this must match the CellWriter compressionStrategy. Default LZ4
        Returns:
      • setByteBufferProvider

        public CellReader.Builder setByteBufferProvider​(ByteBufferProvider byteBufferProvider)
        Parameters:
        byteBufferProvider - - ByteBuffers returned must match the size used in the CellWriter
        Returns:
        Builder