Class RawRowEncoder
- java.lang.Object
-
- io.trino.plugin.kafka.encoder.AbstractRowEncoder
-
- io.trino.plugin.kafka.encoder.raw.RawRowEncoder
-
- All Implemented Interfaces:
RowEncoder,Closeable,AutoCloseable
public class RawRowEncoder extends AbstractRowEncoder
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from class io.trino.plugin.kafka.encoder.AbstractRowEncoder
columnHandles, currentColumnIndex, session
-
-
Constructor Summary
Constructors Constructor Description RawRowEncoder(ConnectorSession session, List<EncoderColumnHandle> columnHandles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendBoolean(boolean value)protected voidappendByte(byte value)protected voidappendByteBuffer(ByteBuffer value)protected voidappendDouble(double value)protected voidappendFloat(float value)protected voidappendInt(int value)protected voidappendLong(long value)protected voidappendShort(short value)protected voidappendString(String value)byte[]toByteArray()Returns the encoded values as a byte array, and resets any info needed to prepare for next row-
Methods inherited from class io.trino.plugin.kafka.encoder.AbstractRowEncoder
appendArray, appendColumnValue, appendMap, appendNullValue, appendRow, appendSqlDate, appendSqlTime, appendSqlTimestamp, appendSqlTimestampWithTimeZone, appendSqlTimeWithTimeZone, close, resetColumnIndex
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RawRowEncoder
public RawRowEncoder(ConnectorSession session, List<EncoderColumnHandle> columnHandles)
-
-
Method Detail
-
appendLong
protected void appendLong(long value)
- Overrides:
appendLongin classAbstractRowEncoder
-
appendInt
protected void appendInt(int value)
- Overrides:
appendIntin classAbstractRowEncoder
-
appendShort
protected void appendShort(short value)
- Overrides:
appendShortin classAbstractRowEncoder
-
appendByte
protected void appendByte(byte value)
- Overrides:
appendBytein classAbstractRowEncoder
-
appendDouble
protected void appendDouble(double value)
- Overrides:
appendDoublein classAbstractRowEncoder
-
appendFloat
protected void appendFloat(float value)
- Overrides:
appendFloatin classAbstractRowEncoder
-
appendBoolean
protected void appendBoolean(boolean value)
- Overrides:
appendBooleanin classAbstractRowEncoder
-
appendString
protected void appendString(String value)
- Overrides:
appendStringin classAbstractRowEncoder
-
appendByteBuffer
protected void appendByteBuffer(ByteBuffer value)
- Overrides:
appendByteBufferin classAbstractRowEncoder
-
toByteArray
public byte[] toByteArray()
Description copied from interface:RowEncoderReturns the encoded values as a byte array, and resets any info needed to prepare for next row
-
-