Package io.trino.plugin.kafka.encoder
Interface RowEncoder
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
AbstractRowEncoder,AvroRowEncoder,CsvRowEncoder,JsonRowEncoder,RawRowEncoder
public interface RowEncoder extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendColumnValue(Block block, int position)Adds the value from the given block/position to the row being encodedbyte[]toByteArray()Returns the encoded values as a byte array, and resets any info needed to prepare for next row
-
-
-
Method Detail
-
appendColumnValue
void appendColumnValue(Block block, int position)
Adds the value from the given block/position to the row being encoded
-
toByteArray
byte[] toByteArray()
Returns the encoded values as a byte array, and resets any info needed to prepare for next row
-
-