public class NestedProjectedRowData extends Object implements org.apache.flink.table.data.RowData, Serializable
RowData
that provides a mapping view of the original RowData
according to
projection information. Compared with ProjectedRowData
, this class supports nested
projection.Modifier and Type | Method and Description |
---|---|
static NestedProjectedRowData |
copy(NestedProjectedRowData rowData) |
int |
getArity() |
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) |
int[][] |
getProjectedFields() |
<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 |
getRowKind() |
org.apache.flink.table.types.logical.RowType |
getRowType() |
short |
getShort(int pos) |
org.apache.flink.table.data.StringData |
getString(int pos) |
org.apache.flink.table.data.TimestampData |
getTimestamp(int pos,
int precision) |
boolean |
isNullAt(int pos) |
NestedProjectedRowData |
replaceRow(org.apache.flink.table.data.RowData row) |
void |
setRowKind(org.apache.flink.types.RowKind rowKind) |
public NestedProjectedRowData replaceRow(org.apache.flink.table.data.RowData row)
@Nullable public static NestedProjectedRowData copy(@Nullable NestedProjectedRowData rowData)
public int getArity()
getArity
in interface org.apache.flink.table.data.RowData
public org.apache.flink.types.RowKind getRowKind()
getRowKind
in interface org.apache.flink.table.data.RowData
public void setRowKind(org.apache.flink.types.RowKind rowKind)
setRowKind
in interface org.apache.flink.table.data.RowData
public boolean isNullAt(int pos)
isNullAt
in interface org.apache.flink.table.data.RowData
public boolean getBoolean(int pos)
getBoolean
in interface org.apache.flink.table.data.RowData
public byte getByte(int pos)
getByte
in interface org.apache.flink.table.data.RowData
public short getShort(int pos)
getShort
in interface org.apache.flink.table.data.RowData
public int getInt(int pos)
getInt
in interface org.apache.flink.table.data.RowData
public long getLong(int pos)
getLong
in interface org.apache.flink.table.data.RowData
public float getFloat(int pos)
getFloat
in interface org.apache.flink.table.data.RowData
public double getDouble(int pos)
getDouble
in interface org.apache.flink.table.data.RowData
public org.apache.flink.table.data.StringData getString(int pos)
getString
in interface org.apache.flink.table.data.RowData
public org.apache.flink.table.data.DecimalData getDecimal(int pos, int precision, int scale)
getDecimal
in interface org.apache.flink.table.data.RowData
public org.apache.flink.table.data.TimestampData getTimestamp(int pos, int precision)
getTimestamp
in interface org.apache.flink.table.data.RowData
public <T> org.apache.flink.table.data.RawValueData<T> getRawValue(int pos)
getRawValue
in interface org.apache.flink.table.data.RowData
public byte[] getBinary(int pos)
getBinary
in interface org.apache.flink.table.data.RowData
public org.apache.flink.table.data.ArrayData getArray(int pos)
getArray
in interface org.apache.flink.table.data.RowData
public org.apache.flink.table.data.MapData getMap(int pos)
getMap
in interface org.apache.flink.table.data.RowData
public org.apache.flink.table.data.RowData getRow(int pos, int numFields)
getRow
in interface org.apache.flink.table.data.RowData
@VisibleForTesting public int[][] getProjectedFields()
@VisibleForTesting public org.apache.flink.table.types.logical.RowType getRowType()
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.