Package io.trino.spi.block
Class LazyBlockEncoding
java.lang.Object
io.trino.spi.block.LazyBlockEncoding
- All Implemented Interfaces:
BlockEncoding
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the unique name of this encoding.readBlock(BlockEncodingSerde blockEncodingSerde, io.airlift.slice.SliceInput input) Read a block from the specified input.replacementBlockForWrite(Block block) This method allows the implementor to specify a replacement object that will be serialized instead of the original one.voidwriteBlock(BlockEncodingSerde blockEncodingSerde, io.airlift.slice.SliceOutput sliceOutput, Block block) Write the specified block to the specified output
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
LazyBlockEncoding
public LazyBlockEncoding()
-
-
Method Details
-
getName
Description copied from interface:BlockEncodingGets the unique name of this encoding.- Specified by:
getNamein interfaceBlockEncoding
-
readBlock
Description copied from interface:BlockEncodingRead a block from the specified input. The returned block should begin at the specified position.- Specified by:
readBlockin interfaceBlockEncoding
-
writeBlock
public void writeBlock(BlockEncodingSerde blockEncodingSerde, io.airlift.slice.SliceOutput sliceOutput, Block block) Description copied from interface:BlockEncodingWrite the specified block to the specified output- Specified by:
writeBlockin interfaceBlockEncoding
-
replacementBlockForWrite
Description copied from interface:BlockEncodingThis method allows the implementor to specify a replacement object that will be serialized instead of the original one.- Specified by:
replacementBlockForWritein interfaceBlockEncoding
-