Class JsonRowEncoder
- java.lang.Object
-
- io.trino.plugin.kafka.encoder.AbstractRowEncoder
-
- io.trino.plugin.kafka.encoder.json.JsonRowEncoder
-
- All Implemented Interfaces:
RowEncoder,Closeable,AutoCloseable
public class JsonRowEncoder 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
-
-
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 voidappendNullValue()protected voidappendShort(short value)protected voidappendSqlDate(SqlDate value)protected voidappendSqlTime(SqlTime value)protected voidappendSqlTimestamp(SqlTimestamp value)protected voidappendSqlTimestampWithTimeZone(SqlTimestampWithTimeZone value)protected voidappendSqlTimeWithTimeZone(SqlTimeWithTimeZone 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, appendRow, close, resetColumnIndex
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
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
-
appendByteBuffer
protected void appendByteBuffer(ByteBuffer value)
- Overrides:
appendByteBufferin classAbstractRowEncoder
-
appendSqlDate
protected void appendSqlDate(SqlDate value)
- Overrides:
appendSqlDatein classAbstractRowEncoder
-
appendSqlTime
protected void appendSqlTime(SqlTime value)
- Overrides:
appendSqlTimein classAbstractRowEncoder
-
appendSqlTimeWithTimeZone
protected void appendSqlTimeWithTimeZone(SqlTimeWithTimeZone value)
- Overrides:
appendSqlTimeWithTimeZonein classAbstractRowEncoder
-
appendSqlTimestamp
protected void appendSqlTimestamp(SqlTimestamp value)
- Overrides:
appendSqlTimestampin classAbstractRowEncoder
-
appendSqlTimestampWithTimeZone
protected void appendSqlTimestampWithTimeZone(SqlTimestampWithTimeZone value)
- Overrides:
appendSqlTimestampWithTimeZonein 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
-
-