Class DefaultRowBasedColumnarBatch
Object
io.delta.kernel.defaults.internal.data.DefaultRowBasedColumnarBatch
- All Implemented Interfaces:
io.delta.kernel.data.ColumnarBatch
public class DefaultRowBasedColumnarBatch
extends Object
implements io.delta.kernel.data.ColumnarBatch
ColumnarBatch wrapper around list of Row objects. TODO: We should change the
DefaultJsonHandler to generate data in true columnar
format than wrapping a set of rows with a columnar batch interface.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRowBasedColumnarBatch(io.delta.kernel.types.StructType schema, List<io.delta.kernel.data.Row> rows) -
Method Summary
Modifier and TypeMethodDescriptionio.delta.kernel.data.ColumnVectorgetColumnVector(int ordinal) io.delta.kernel.types.StructTypeintgetSize()io.delta.kernel.data.ColumnarBatchwithDeletedColumnAt(int ordinal) TODO this implementation sucksio.delta.kernel.data.ColumnarBatchwithNewColumn(int ordinal, io.delta.kernel.types.StructField columnSchema, io.delta.kernel.data.ColumnVector columnVector) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.delta.kernel.data.ColumnarBatch
getRows, withNewSchema
-
Constructor Details
-
DefaultRowBasedColumnarBatch
public DefaultRowBasedColumnarBatch(io.delta.kernel.types.StructType schema, List<io.delta.kernel.data.Row> rows)
-
-
Method Details
-
getSchema
public io.delta.kernel.types.StructType getSchema()- Specified by:
getSchemain interfaceio.delta.kernel.data.ColumnarBatch
-
getSize
public int getSize()- Specified by:
getSizein interfaceio.delta.kernel.data.ColumnarBatch
-
getColumnVector
public io.delta.kernel.data.ColumnVector getColumnVector(int ordinal) - Specified by:
getColumnVectorin interfaceio.delta.kernel.data.ColumnarBatch
-
withNewColumn
public io.delta.kernel.data.ColumnarBatch withNewColumn(int ordinal, io.delta.kernel.types.StructField columnSchema, io.delta.kernel.data.ColumnVector columnVector) - Specified by:
withNewColumnin interfaceio.delta.kernel.data.ColumnarBatch
-
withDeletedColumnAt
public io.delta.kernel.data.ColumnarBatch withDeletedColumnAt(int ordinal) TODO this implementation sucks- Specified by:
withDeletedColumnAtin interfaceio.delta.kernel.data.ColumnarBatch
-