Class CsvRowEncoder
- java.lang.Object
-
- io.trino.plugin.kafka.encoder.AbstractRowEncoder
-
- io.trino.plugin.kafka.encoder.csv.CsvRowEncoder
-
- All Implemented Interfaces:
RowEncoder,Closeable,AutoCloseable
public class CsvRowEncoder 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 CsvRowEncoder(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 voidappendDouble(double value)protected voidappendFloat(float value)protected voidappendInt(int value)protected voidappendLong(long value)protected voidappendNullValue()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, appendByteBuffer, appendColumnValue, appendMap, appendRow, appendSqlDate, appendSqlTime, appendSqlTimestamp, appendSqlTimestampWithTimeZone, appendSqlTimeWithTimeZone, close, resetColumnIndex
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CsvRowEncoder
public CsvRowEncoder(ConnectorSession session, List<EncoderColumnHandle> columnHandles)
-
-
Method Detail
-
appendNullValue
protected void appendNullValue()
- Overrides:
appendNullValuein classAbstractRowEncoder
-
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
-
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
-
-