Class BoxedWrapperRowData

java.lang.Object
org.apache.flink.table.data.BoxedWrapperRowData
All Implemented Interfaces:
org.apache.flink.table.data.binary.TypedSetters, org.apache.flink.table.data.RowData

public class BoxedWrapperRowData extends Object implements org.apache.flink.table.data.RowData, org.apache.flink.table.data.binary.TypedSetters
An implementation of RowData which also is also backed by an array of Java Object, just similar to GenericRowData. But BoxedWrapperRowData wraps primitive types into boxed object to avoid boxing and unboxing.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.flink.table.data.RowData

    org.apache.flink.table.data.RowData.FieldGetter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Object[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    org.apache.flink.table.data.ArrayData
    getArray(int pos)
     
    byte[]
    getBinary(int pos)
     
    boolean
    getBoolean(int pos)
     
    byte
    getByte(int pos)
     
    org.apache.flink.table.data.DecimalData
    getDecimal(int pos, int precision, int scale)
     
    double
    getDouble(int pos)
     
    float
    getFloat(int pos)
     
    int
    getInt(int pos)
     
    long
    getLong(int pos)
     
    org.apache.flink.table.data.MapData
    getMap(int pos)
     
    <T> org.apache.flink.table.data.RawValueData<T>
    getRawValue(int pos)
     
    org.apache.flink.table.data.RowData
    getRow(int pos, int numFields)
     
    org.apache.flink.types.RowKind
     
    short
    getShort(int pos)
     
    org.apache.flink.table.data.StringData
    getString(int pos)
     
    org.apache.flink.table.data.TimestampData
    getTimestamp(int pos, int precision)
     
    int
     
    boolean
    isNullAt(int pos)
     
    void
    setBoolean(int pos, boolean value)
     
    void
    setByte(int pos, byte value)
     
    void
    setDecimal(int pos, org.apache.flink.table.data.DecimalData value, int precision)
     
    void
    setDouble(int pos, double value)
     
    void
    setFloat(int pos, float value)
     
    void
    setInt(int pos, int value)
     
    void
    setLong(int pos, long value)
     
    void
    setNonPrimitiveValue(int pos, Object value)
     
    void
    setNullAt(int pos)
     
    void
    setRowKind(org.apache.flink.types.RowKind kind)
     
    void
    setShort(int pos, short value)
     
    void
    setTimestamp(int pos, org.apache.flink.table.data.TimestampData value, int precision)
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • fields

      protected final Object[] fields
  • Constructor Details

    • BoxedWrapperRowData

      public BoxedWrapperRowData(int arity)
  • Method Details

    • getArity

      public int getArity()
      Specified by:
      getArity in interface org.apache.flink.table.data.RowData
    • getRowKind

      public org.apache.flink.types.RowKind getRowKind()
      Specified by:
      getRowKind in interface org.apache.flink.table.data.RowData
    • setRowKind

      public void setRowKind(org.apache.flink.types.RowKind kind)
      Specified by:
      setRowKind in interface org.apache.flink.table.data.RowData
    • isNullAt

      public boolean isNullAt(int pos)
      Specified by:
      isNullAt in interface org.apache.flink.table.data.RowData
    • getBoolean

      public boolean getBoolean(int pos)
      Specified by:
      getBoolean in interface org.apache.flink.table.data.RowData
    • getByte

      public byte getByte(int pos)
      Specified by:
      getByte in interface org.apache.flink.table.data.RowData
    • getShort

      public short getShort(int pos)
      Specified by:
      getShort in interface org.apache.flink.table.data.RowData
    • getInt

      public int getInt(int pos)
      Specified by:
      getInt in interface org.apache.flink.table.data.RowData
    • getLong

      public long getLong(int pos)
      Specified by:
      getLong in interface org.apache.flink.table.data.RowData
    • getFloat

      public float getFloat(int pos)
      Specified by:
      getFloat in interface org.apache.flink.table.data.RowData
    • getDouble

      public double getDouble(int pos)
      Specified by:
      getDouble in interface org.apache.flink.table.data.RowData
    • getString

      public org.apache.flink.table.data.StringData getString(int pos)
      Specified by:
      getString in interface org.apache.flink.table.data.RowData
    • getDecimal

      public org.apache.flink.table.data.DecimalData getDecimal(int pos, int precision, int scale)
      Specified by:
      getDecimal in interface org.apache.flink.table.data.RowData
    • getTimestamp

      public org.apache.flink.table.data.TimestampData getTimestamp(int pos, int precision)
      Specified by:
      getTimestamp in interface org.apache.flink.table.data.RowData
    • getRawValue

      public <T> org.apache.flink.table.data.RawValueData<T> getRawValue(int pos)
      Specified by:
      getRawValue in interface org.apache.flink.table.data.RowData
    • getBinary

      public byte[] getBinary(int pos)
      Specified by:
      getBinary in interface org.apache.flink.table.data.RowData
    • getArray

      public org.apache.flink.table.data.ArrayData getArray(int pos)
      Specified by:
      getArray in interface org.apache.flink.table.data.RowData
    • getMap

      public org.apache.flink.table.data.MapData getMap(int pos)
      Specified by:
      getMap in interface org.apache.flink.table.data.RowData
    • getRow

      public org.apache.flink.table.data.RowData getRow(int pos, int numFields)
      Specified by:
      getRow in interface org.apache.flink.table.data.RowData
    • setNullAt

      public void setNullAt(int pos)
      Specified by:
      setNullAt in interface org.apache.flink.table.data.binary.TypedSetters
    • setBoolean

      public void setBoolean(int pos, boolean value)
      Specified by:
      setBoolean in interface org.apache.flink.table.data.binary.TypedSetters
    • setByte

      public void setByte(int pos, byte value)
      Specified by:
      setByte in interface org.apache.flink.table.data.binary.TypedSetters
    • setShort

      public void setShort(int pos, short value)
      Specified by:
      setShort in interface org.apache.flink.table.data.binary.TypedSetters
    • setInt

      public void setInt(int pos, int value)
      Specified by:
      setInt in interface org.apache.flink.table.data.binary.TypedSetters
    • setLong

      public void setLong(int pos, long value)
      Specified by:
      setLong in interface org.apache.flink.table.data.binary.TypedSetters
    • setFloat

      public void setFloat(int pos, float value)
      Specified by:
      setFloat in interface org.apache.flink.table.data.binary.TypedSetters
    • setDouble

      public void setDouble(int pos, double value)
      Specified by:
      setDouble in interface org.apache.flink.table.data.binary.TypedSetters
    • setDecimal

      public void setDecimal(int pos, org.apache.flink.table.data.DecimalData value, int precision)
      Specified by:
      setDecimal in interface org.apache.flink.table.data.binary.TypedSetters
    • setTimestamp

      public void setTimestamp(int pos, org.apache.flink.table.data.TimestampData value, int precision)
      Specified by:
      setTimestamp in interface org.apache.flink.table.data.binary.TypedSetters
    • setNonPrimitiveValue

      public void setNonPrimitiveValue(int pos, Object value)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object