Package org.apache.iceberg.flink.data
Class RowDataProjection
- java.lang.Object
-
- org.apache.iceberg.flink.data.RowDataProjection
-
- All Implemented Interfaces:
org.apache.flink.table.data.RowData
public class RowDataProjection extends java.lang.Object implements org.apache.flink.table.data.RowData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RowDataProjectioncreate(org.apache.flink.table.types.logical.RowType rowType, Types.StructType schema, Types.StructType projectedSchema)Creates a projecting wrapper forRowDatarows.static RowDataProjectioncreate(Schema schema, Schema projectedSchema)Creates a projecting wrapper forRowDatarows.booleanequals(java.lang.Object o)intgetArity()org.apache.flink.table.data.ArrayDatagetArray(int pos)byte[]getBinary(int pos)booleangetBoolean(int pos)bytegetByte(int pos)org.apache.flink.table.data.DecimalDatagetDecimal(int pos, int precision, int scale)doublegetDouble(int pos)floatgetFloat(int pos)intgetInt(int pos)longgetLong(int pos)org.apache.flink.table.data.MapDatagetMap(int pos)<T> org.apache.flink.table.data.RawValueData<T>getRawValue(int pos)org.apache.flink.table.data.RowDatagetRow(int pos, int numFields)org.apache.flink.types.RowKindgetRowKind()shortgetShort(int pos)org.apache.flink.table.data.StringDatagetString(int pos)org.apache.flink.table.data.TimestampDatagetTimestamp(int pos, int precision)inthashCode()booleanisNullAt(int pos)voidsetRowKind(org.apache.flink.types.RowKind kind)java.lang.StringtoString()org.apache.flink.table.data.RowDatawrap(org.apache.flink.table.data.RowData row)
-
-
-
Method Detail
-
create
public static RowDataProjection create(Schema schema, Schema projectedSchema)
Creates a projecting wrapper forRowDatarows.This projection will not project the nested children types of repeated types like lists and maps.
- Parameters:
schema- schema of rows wrapped by this projectionprojectedSchema- result schema of the projected rows- Returns:
- a wrapper to project rows
-
create
public static RowDataProjection create(org.apache.flink.table.types.logical.RowType rowType, Types.StructType schema, Types.StructType projectedSchema)
Creates a projecting wrapper forRowDatarows.This projection will not project the nested children types of repeated types like lists and maps.
- Parameters:
rowType- flink row type of rows wrapped by this projectionschema- schema of rows wrapped by this projectionprojectedSchema- result schema of the projected rows- Returns:
- a wrapper to project rows
-
wrap
public org.apache.flink.table.data.RowData wrap(org.apache.flink.table.data.RowData row)
-
getArity
public int getArity()
- Specified by:
getArityin interfaceorg.apache.flink.table.data.RowData
-
getRowKind
public org.apache.flink.types.RowKind getRowKind()
- Specified by:
getRowKindin interfaceorg.apache.flink.table.data.RowData
-
setRowKind
public void setRowKind(org.apache.flink.types.RowKind kind)
- Specified by:
setRowKindin interfaceorg.apache.flink.table.data.RowData
-
isNullAt
public boolean isNullAt(int pos)
- Specified by:
isNullAtin interfaceorg.apache.flink.table.data.RowData
-
getBoolean
public boolean getBoolean(int pos)
- Specified by:
getBooleanin interfaceorg.apache.flink.table.data.RowData
-
getByte
public byte getByte(int pos)
- Specified by:
getBytein interfaceorg.apache.flink.table.data.RowData
-
getShort
public short getShort(int pos)
- Specified by:
getShortin interfaceorg.apache.flink.table.data.RowData
-
getInt
public int getInt(int pos)
- Specified by:
getIntin interfaceorg.apache.flink.table.data.RowData
-
getLong
public long getLong(int pos)
- Specified by:
getLongin interfaceorg.apache.flink.table.data.RowData
-
getFloat
public float getFloat(int pos)
- Specified by:
getFloatin interfaceorg.apache.flink.table.data.RowData
-
getDouble
public double getDouble(int pos)
- Specified by:
getDoublein interfaceorg.apache.flink.table.data.RowData
-
getString
public org.apache.flink.table.data.StringData getString(int pos)
- Specified by:
getStringin interfaceorg.apache.flink.table.data.RowData
-
getDecimal
public org.apache.flink.table.data.DecimalData getDecimal(int pos, int precision, int scale)- Specified by:
getDecimalin interfaceorg.apache.flink.table.data.RowData
-
getTimestamp
public org.apache.flink.table.data.TimestampData getTimestamp(int pos, int precision)- Specified by:
getTimestampin interfaceorg.apache.flink.table.data.RowData
-
getRawValue
public <T> org.apache.flink.table.data.RawValueData<T> getRawValue(int pos)
- Specified by:
getRawValuein interfaceorg.apache.flink.table.data.RowData
-
getBinary
public byte[] getBinary(int pos)
- Specified by:
getBinaryin interfaceorg.apache.flink.table.data.RowData
-
getArray
public org.apache.flink.table.data.ArrayData getArray(int pos)
- Specified by:
getArrayin interfaceorg.apache.flink.table.data.RowData
-
getMap
public org.apache.flink.table.data.MapData getMap(int pos)
- Specified by:
getMapin interfaceorg.apache.flink.table.data.RowData
-
getRow
public org.apache.flink.table.data.RowData getRow(int pos, int numFields)- Specified by:
getRowin interfaceorg.apache.flink.table.data.RowData
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-