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
@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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleananyNull()org.apache.spark.sql.catalyst.InternalRowcopy()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.InternalRowapply, copyValue, empty, fromSeq, getAccessor, getAccessor$default$2, getString, getWriter, setBoolean, setByte, setDecimal, setDouble, setFloat, setInt, setInterval, setLong, setShort, toSeq, toSeq
- 
Field Details- 
rowIdpublic int rowId
 
- 
- 
Constructor Details- 
ColumnarBatchRow
 
- 
- 
Method Details- 
numFieldspublic int numFields()- Specified by:
- numFieldsin class- org.apache.spark.sql.catalyst.InternalRow
 
- 
copypublic org.apache.spark.sql.catalyst.InternalRow copy()- Specified by:
- copyin class- org.apache.spark.sql.catalyst.InternalRow
 
- 
anyNullpublic boolean anyNull()- Overrides:
- anyNullin class- org.apache.spark.sql.catalyst.InternalRow
 
- 
isNullAtpublic boolean isNullAt(int ordinal) 
- 
getBooleanpublic boolean getBoolean(int ordinal) 
- 
getBytepublic byte getByte(int ordinal) 
- 
getShortpublic short getShort(int ordinal) 
- 
getIntpublic int getInt(int ordinal) 
- 
getLongpublic long getLong(int ordinal) 
- 
getFloatpublic float getFloat(int ordinal) 
- 
getDoublepublic double getDouble(int ordinal) 
- 
getDecimal
- 
getUTF8Stringpublic org.apache.spark.unsafe.types.UTF8String getUTF8String(int ordinal) 
- 
getBinarypublic byte[] getBinary(int ordinal) 
- 
getInterval
- 
getVariantpublic org.apache.spark.unsafe.types.VariantVal getVariant(int ordinal) 
- 
getStruct
- 
getArray
- 
getMap
- 
get
- 
update- Specified by:
- updatein class- org.apache.spark.sql.catalyst.InternalRow
 
- 
setNullAtpublic void setNullAt(int ordinal) - Specified by:
- setNullAtin class- org.apache.spark.sql.catalyst.InternalRow
 
 
-