Package org.apache.spark.sql.vectorized
Class ColumnarBatchRow
Object
org.apache.spark.sql.catalyst.InternalRow
org.apache.spark.sql.vectorized.ColumnarBatchRow
- All Implemented Interfaces:
Serializable
,org.apache.spark.sql.catalyst.expressions.SpecializedGetters
,scala.Serializable
@DeveloperApi
public final class ColumnarBatchRow
extends org.apache.spark.sql.catalyst.InternalRow
This class wraps an array of
ColumnVector
and provides a row view.- Since:
- 3.3.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
anyNull()
org.apache.spark.sql.catalyst.InternalRow
copy()
getArray
(int ordinal) byte[]
getBinary
(int ordinal) boolean
getBoolean
(int ordinal) byte
getByte
(int ordinal) getDecimal
(int ordinal, int precision, int scale) double
getDouble
(int ordinal) float
getFloat
(int ordinal) int
getInt
(int ordinal) getInterval
(int ordinal) long
getLong
(int ordinal) getMap
(int ordinal) short
getShort
(int ordinal) getStruct
(int ordinal, int numFields) org.apache.spark.unsafe.types.UTF8String
getUTF8String
(int ordinal) boolean
isNullAt
(int ordinal) int
void
setNullAt
(int ordinal) void
Methods 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
-
Field Details
-
rowId
public int rowId
-
-
Constructor Details
-
ColumnarBatchRow
-
-
Method Details
-
numFields
public int numFields()- Specified by:
numFields
in classorg.apache.spark.sql.catalyst.InternalRow
-
copy
public org.apache.spark.sql.catalyst.InternalRow copy()- Specified by:
copy
in classorg.apache.spark.sql.catalyst.InternalRow
-
anyNull
public boolean anyNull()- Overrides:
anyNull
in 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
-
getStruct
-
getArray
-
getMap
-
get
-
update
- Specified by:
update
in classorg.apache.spark.sql.catalyst.InternalRow
-
setNullAt
public void setNullAt(int ordinal) - Specified by:
setNullAt
in classorg.apache.spark.sql.catalyst.InternalRow
-