Class 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 CDC RecordData as a Fluss InternalRow.
    • Method Detail

      • getFieldCount

        public int getFieldCount()
        Specified by:
        getFieldCount in interface org.apache.fluss.row.InternalRow
      • isNullAt

        public boolean isNullAt​(int pos)
        Specified by:
        isNullAt in interface org.apache.fluss.row.DataGetters
      • getBoolean

        public boolean getBoolean​(int pos)
        Specified by:
        getBoolean in interface org.apache.fluss.row.DataGetters
      • getByte

        public byte getByte​(int pos)
        Specified by:
        getByte in interface org.apache.fluss.row.DataGetters
      • getShort

        public short getShort​(int pos)
        Specified by:
        getShort in interface org.apache.fluss.row.DataGetters
      • getInt

        public int getInt​(int pos)
        Specified by:
        getInt in interface org.apache.fluss.row.DataGetters
      • getLong

        public long getLong​(int pos)
        Specified by:
        getLong in interface org.apache.fluss.row.DataGetters
      • getFloat

        public float getFloat​(int pos)
        Specified by:
        getFloat in interface org.apache.fluss.row.DataGetters
      • getDouble

        public double getDouble​(int pos)
        Specified by:
        getDouble in interface org.apache.fluss.row.DataGetters
      • getChar

        public org.apache.fluss.row.BinaryString getChar​(int pos,
                                                         int length)
        Specified by:
        getChar in interface org.apache.fluss.row.DataGetters
      • getString

        public org.apache.fluss.row.BinaryString getString​(int pos)
        Specified by:
        getString in interface org.apache.fluss.row.DataGetters
      • getDecimal

        public org.apache.fluss.row.Decimal getDecimal​(int pos,
                                                       int precision,
                                                       int scale)
        Specified by:
        getDecimal in interface org.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:
        getTimestampNtz in interface org.apache.fluss.row.DataGetters
      • getTimestampLtz

        public org.apache.fluss.row.TimestampLtz getTimestampLtz​(int pos,
                                                                 int precision)
        Specified by:
        getTimestampLtz in interface org.apache.fluss.row.DataGetters
      • getBinary

        public byte[] getBinary​(int pos,
                                int length)
        Specified by:
        getBinary in interface org.apache.fluss.row.DataGetters
      • getBytes

        public byte[] getBytes​(int pos)
        Specified by:
        getBytes in interface org.apache.fluss.row.DataGetters
      • getArray

        public org.apache.fluss.row.InternalArray getArray​(int i)
        Specified by:
        getArray in interface org.apache.fluss.row.DataGetters
      • getMap

        public org.apache.fluss.row.InternalMap getMap​(int i)
        Specified by:
        getMap in interface org.apache.fluss.row.DataGetters
      • getRow

        public org.apache.fluss.row.InternalRow getRow​(int i,
                                                       int numFields)
        Specified by:
        getRow in interface org.apache.fluss.row.DataGetters