public class CarbonVectorBatch extends Object
| Modifier and Type | Method and Description |
|---|---|
static CarbonVectorBatch |
allocate(org.apache.carbondata.core.metadata.datatype.StructField[] schema,
org.apache.carbondata.presto.CarbonDictionaryDecodeReadSupport readSupport,
boolean isDirectFill) |
int |
capacity()
Returns the max capacity (in number of rows) for this batch.
|
org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl |
column(int ordinal)
Returns the column at `ordinal`.
|
static org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl |
createDirectStreamReader(int batchSize,
org.apache.carbondata.core.metadata.datatype.DataType dataType,
org.apache.carbondata.core.metadata.datatype.StructField field,
org.apache.carbondata.core.cache.dictionary.Dictionary dictionary) |
int |
numCols()
Returns the number of columns that make up this batch.
|
int |
numRows()
Returns the number of rows for read, including filtered rows.
|
int |
numValidRows()
Returns the number of valid rows.
|
void |
reset()
Resets the batch for writing.
|
void |
setNumRows(int numRows)
Sets the number of rows that are valid.
|
public static CarbonVectorBatch allocate(org.apache.carbondata.core.metadata.datatype.StructField[] schema, org.apache.carbondata.presto.CarbonDictionaryDecodeReadSupport readSupport, boolean isDirectFill)
public static org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl createDirectStreamReader(int batchSize,
org.apache.carbondata.core.metadata.datatype.DataType dataType,
org.apache.carbondata.core.metadata.datatype.StructField field,
org.apache.carbondata.core.cache.dictionary.Dictionary dictionary)
public void reset()
public int numCols()
public void setNumRows(int numRows)
public int numRows()
public int numValidRows()
public org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl column(int ordinal)
public int capacity()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.