Package org.apache.spark.sql.vectorized
Class ColumnarRow
Object
org.apache.spark.sql.catalyst.InternalRow
org.apache.spark.sql.vectorized.ColumnarRow
- All Implemented Interfaces:
Serializable,org.apache.spark.sql.catalyst.expressions.SpecializedGetters
@Evolving
public final class ColumnarRow
extends org.apache.spark.sql.catalyst.InternalRow
Row abstraction in
ColumnVector.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleananyNull()org.apache.spark.sql.catalyst.InternalRowcopy()Revisit this.getArray(int ordinal) byte[]getBinary(int ordinal) booleangetBoolean(int ordinal) bytegetByte(int ordinal) getDecimal(int ordinal, int precision, int scale) doublegetDouble(int ordinal) floatgetFloat(int ordinal) intgetInt(int ordinal) getInterval(int ordinal) longgetLong(int ordinal) getMap(int ordinal) shortgetShort(int ordinal) getStruct(int ordinal, int numFields) org.apache.spark.unsafe.types.UTF8StringgetUTF8String(int ordinal) org.apache.spark.unsafe.types.VariantValgetVariant(int ordinal) booleanisNullAt(int ordinal) intvoidsetNullAt(int ordinal) voidMethods inherited from class org.apache.spark.sql.catalyst.InternalRow
apply, copyValue, empty, fromSeq, getAccessor, getAccessor$default$2, getString, getWriter, setBoolean, setByte, setDecimal, setDouble, setFloat, setInt, setInterval, setLong, setShort, toSeq, toSeq
-
Constructor Details
-
ColumnarRow
-
-
Method Details
-
numFields
public int numFields()- Specified by:
numFieldsin classorg.apache.spark.sql.catalyst.InternalRow
-
copy
public org.apache.spark.sql.catalyst.InternalRow copy()Revisit this. This is expensive. This is currently only used in test paths.- Specified by:
copyin classorg.apache.spark.sql.catalyst.InternalRow
-
anyNull
public boolean anyNull()- Overrides:
anyNullin classorg.apache.spark.sql.catalyst.InternalRow
-
isNullAt
public boolean isNullAt(int ordinal) -
getBoolean
public boolean getBoolean(int ordinal) -
getByte
public byte getByte(int ordinal) -
getShort
public short getShort(int ordinal) -
getInt
public int getInt(int ordinal) -
getLong
public long getLong(int ordinal) -
getFloat
public float getFloat(int ordinal) -
getDouble
public double getDouble(int ordinal) -
getDecimal
-
getUTF8String
public org.apache.spark.unsafe.types.UTF8String getUTF8String(int ordinal) -
getBinary
public byte[] getBinary(int ordinal) -
getInterval
-
getVariant
public org.apache.spark.unsafe.types.VariantVal getVariant(int ordinal) -
getStruct
-
getArray
-
getMap
-
get
-
update
- Specified by:
updatein classorg.apache.spark.sql.catalyst.InternalRow
-
setNullAt
public void setNullAt(int ordinal) - Specified by:
setNullAtin classorg.apache.spark.sql.catalyst.InternalRow
-