public class BasicColumnBuilder<T extends org.apache.spark.sql.catalyst.types.DataType,JvmType> extends Object implements ColumnBuilder
Constructor and Description |
---|
BasicColumnBuilder(ColumnStats columnStats,
ColumnType<T,JvmType> columnType) |
Modifier and Type | Method and Description |
---|---|
void |
appendFrom(org.apache.spark.sql.catalyst.expressions.Row row,
int ordinal)
Appends
row(ordinal) to the column builder. |
java.nio.ByteBuffer |
build()
Returns the final columnar byte buffer.
|
ColumnStats |
columnStats()
Column statistics information
|
ColumnType<T,JvmType> |
columnType() |
void |
initialize(int initialSize,
String columnName,
boolean useCompression)
Initializes with an approximate lower bound on the expected number of elements in this column.
|
public BasicColumnBuilder(ColumnStats columnStats, ColumnType<T,JvmType> columnType)
public ColumnStats columnStats()
ColumnBuilder
columnStats
in interface ColumnBuilder
public ColumnType<T,JvmType> columnType()
public void initialize(int initialSize, String columnName, boolean useCompression)
ColumnBuilder
initialize
in interface ColumnBuilder
public void appendFrom(org.apache.spark.sql.catalyst.expressions.Row row, int ordinal)
ColumnBuilder
row(ordinal)
to the column builder.appendFrom
in interface ColumnBuilder
public java.nio.ByteBuffer build()
ColumnBuilder
build
in interface ColumnBuilder