public abstract class AbstractSparkInternalRow
extends org.apache.paimon.spark.data.SparkInternalRow
SparkInternalRow
that overwrite all the common methods in spark3 and spark4.Modifier and Type | Field and Description |
---|---|
protected InternalRow |
row |
protected RowType |
rowType |
Constructor and Description |
---|
AbstractSparkInternalRow(RowType rowType) |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.sql.catalyst.InternalRow |
copy() |
boolean |
equals(Object o) |
Object |
get(int ordinal,
org.apache.spark.sql.types.DataType dataType) |
org.apache.spark.sql.catalyst.util.ArrayData |
getArray(int ordinal) |
byte[] |
getBinary(int ordinal) |
boolean |
getBoolean(int ordinal) |
byte |
getByte(int ordinal) |
org.apache.spark.sql.types.Decimal |
getDecimal(int ordinal,
int precision,
int scale) |
double |
getDouble(int ordinal) |
float |
getFloat(int ordinal) |
int |
getInt(int ordinal) |
org.apache.spark.unsafe.types.CalendarInterval |
getInterval(int ordinal) |
long |
getLong(int ordinal) |
org.apache.spark.sql.catalyst.util.MapData |
getMap(int ordinal) |
short |
getShort(int ordinal) |
org.apache.spark.sql.catalyst.InternalRow |
getStruct(int ordinal,
int numFields) |
org.apache.spark.unsafe.types.UTF8String |
getUTF8String(int ordinal) |
int |
hashCode() |
boolean |
isNullAt(int ordinal) |
int |
numFields() |
org.apache.paimon.spark.data.SparkInternalRow |
replace(InternalRow row) |
void |
setNullAt(int i) |
void |
update(int i,
Object value) |
protected RowType rowType
protected InternalRow row
public AbstractSparkInternalRow(RowType rowType)
public org.apache.paimon.spark.data.SparkInternalRow replace(InternalRow row)
replace
in class org.apache.paimon.spark.data.SparkInternalRow
public int numFields()
numFields
in class org.apache.spark.sql.catalyst.InternalRow
public void setNullAt(int i)
setNullAt
in class org.apache.spark.sql.catalyst.InternalRow
public void update(int i, Object value)
update
in class org.apache.spark.sql.catalyst.InternalRow
public org.apache.spark.sql.catalyst.InternalRow copy()
copy
in class org.apache.spark.sql.catalyst.InternalRow
public boolean isNullAt(int ordinal)
public boolean getBoolean(int ordinal)
public byte getByte(int ordinal)
public short getShort(int ordinal)
public int getInt(int ordinal)
public long getLong(int ordinal)
public float getFloat(int ordinal)
public double getDouble(int ordinal)
public org.apache.spark.sql.types.Decimal getDecimal(int ordinal, int precision, int scale)
public org.apache.spark.unsafe.types.UTF8String getUTF8String(int ordinal)
public byte[] getBinary(int ordinal)
public org.apache.spark.unsafe.types.CalendarInterval getInterval(int ordinal)
public org.apache.spark.sql.catalyst.InternalRow getStruct(int ordinal, int numFields)
public org.apache.spark.sql.catalyst.util.ArrayData getArray(int ordinal)
public org.apache.spark.sql.catalyst.util.MapData getMap(int ordinal)
public Object get(int ordinal, org.apache.spark.sql.types.DataType dataType)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.