Class CellReader.Builder
java.lang.Object
org.apache.druid.segment.serde.cell.CellReader.Builder
- Enclosing class:
- CellReader
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(ByteBuffer originalByteBuffer) The default block size is 64k as provided by NativeClearedByteBufferProvider. -
Method Summary
Modifier and TypeMethodDescriptionbuild()setByteBufferProvider(ByteBufferProvider byteBufferProvider) setCompressionStrategy(CompressionStrategy compressionStrategy)
-
Constructor Details
-
Builder
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 fromCellWriter.writeTo()as written to the WritableChannel
-
-
Method Details
-
setCompressionStrategy
- Parameters:
compressionStrategy- - this must match the CellWriter compressionStrategy. Default LZ4- Returns:
-
setByteBufferProvider
- Parameters:
byteBufferProvider- - ByteBuffers returned must match the size used in the CellWriter- Returns:
- Builder
-
build
-