Class CdcAsFlussRow
- java.lang.Object
-
- org.apache.flink.cdc.connectors.fluss.sink.row.CdcAsFlussRow
-
- All Implemented Interfaces:
org.apache.fluss.row.DataGetters,org.apache.fluss.row.InternalRow
@Internal public class CdcAsFlussRow extends Object implements org.apache.fluss.row.InternalRow
Wraps a CDCRecordDataas a FlussInternalRow.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.fluss.row.DecimalfromFlinkDecimal(DecimalData decimal)org.apache.fluss.row.InternalArraygetArray(int i)byte[]getBinary(int pos, int length)booleangetBoolean(int pos)bytegetByte(int pos)byte[]getBytes(int pos)RecordDatagetCdcRecord()org.apache.fluss.row.BinaryStringgetChar(int pos, int length)org.apache.fluss.row.DecimalgetDecimal(int pos, int precision, int scale)doublegetDouble(int pos)intgetFieldCount()floatgetFloat(int pos)Map<Integer,Integer>getIndexMapping()intgetInt(int pos)longgetLong(int pos)org.apache.fluss.row.InternalMapgetMap(int i)org.apache.fluss.row.InternalRowgetRow(int i, int numFields)shortgetShort(int pos)org.apache.fluss.row.BinaryStringgetString(int pos)org.apache.fluss.row.TimestampLtzgetTimestampLtz(int pos, int precision)org.apache.fluss.row.TimestampNtzgetTimestampNtz(int pos, int precision)booleanisNullAt(int pos)static CdcAsFlussRowreplace(RecordData cdcRecord)static CdcAsFlussRowreplace(RecordData cdcRecord, Integer rowFieldCount, Map<Integer,Integer> indexMapping)
-
-
-
Method Detail
-
replace
public static CdcAsFlussRow replace(RecordData cdcRecord, Integer rowFieldCount, Map<Integer,Integer> indexMapping)
-
replace
public static CdcAsFlussRow replace(RecordData cdcRecord)
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCountin interfaceorg.apache.fluss.row.InternalRow
-
isNullAt
public boolean isNullAt(int pos)
- Specified by:
isNullAtin interfaceorg.apache.fluss.row.DataGetters
-
getBoolean
public boolean getBoolean(int pos)
- Specified by:
getBooleanin interfaceorg.apache.fluss.row.DataGetters
-
getByte
public byte getByte(int pos)
- Specified by:
getBytein interfaceorg.apache.fluss.row.DataGetters
-
getShort
public short getShort(int pos)
- Specified by:
getShortin interfaceorg.apache.fluss.row.DataGetters
-
getInt
public int getInt(int pos)
- Specified by:
getIntin interfaceorg.apache.fluss.row.DataGetters
-
getLong
public long getLong(int pos)
- Specified by:
getLongin interfaceorg.apache.fluss.row.DataGetters
-
getFloat
public float getFloat(int pos)
- Specified by:
getFloatin interfaceorg.apache.fluss.row.DataGetters
-
getDouble
public double getDouble(int pos)
- Specified by:
getDoublein interfaceorg.apache.fluss.row.DataGetters
-
getChar
public org.apache.fluss.row.BinaryString getChar(int pos, int length)- Specified by:
getCharin interfaceorg.apache.fluss.row.DataGetters
-
getString
public org.apache.fluss.row.BinaryString getString(int pos)
- Specified by:
getStringin interfaceorg.apache.fluss.row.DataGetters
-
getDecimal
public org.apache.fluss.row.Decimal getDecimal(int pos, int precision, int scale)- Specified by:
getDecimalin interfaceorg.apache.fluss.row.DataGetters
-
fromFlinkDecimal
public static org.apache.fluss.row.Decimal fromFlinkDecimal(DecimalData decimal)
-
getTimestampNtz
public org.apache.fluss.row.TimestampNtz getTimestampNtz(int pos, int precision)- Specified by:
getTimestampNtzin interfaceorg.apache.fluss.row.DataGetters
-
getTimestampLtz
public org.apache.fluss.row.TimestampLtz getTimestampLtz(int pos, int precision)- Specified by:
getTimestampLtzin interfaceorg.apache.fluss.row.DataGetters
-
getBinary
public byte[] getBinary(int pos, int length)- Specified by:
getBinaryin interfaceorg.apache.fluss.row.DataGetters
-
getBytes
public byte[] getBytes(int pos)
- Specified by:
getBytesin interfaceorg.apache.fluss.row.DataGetters
-
getArray
public org.apache.fluss.row.InternalArray getArray(int i)
- Specified by:
getArrayin interfaceorg.apache.fluss.row.DataGetters
-
getMap
public org.apache.fluss.row.InternalMap getMap(int i)
- Specified by:
getMapin interfaceorg.apache.fluss.row.DataGetters
-
getRow
public org.apache.fluss.row.InternalRow getRow(int i, int numFields)- Specified by:
getRowin interfaceorg.apache.fluss.row.DataGetters
-
getCdcRecord
@VisibleForTesting public RecordData getCdcRecord()
-
getIndexMapping
@VisibleForTesting public Map<Integer,Integer> getIndexMapping()
-
-