public class VectorizedRowBatch extends Object implements org.apache.hadoop.io.Writable
Modifier and Type | Field and Description |
---|---|
ColumnVector[] |
cols |
static int |
DEFAULT_SIZE |
boolean |
endOfFile |
int |
numCols |
int[] |
projectedColumns |
int |
projectionSize |
int[] |
selected |
boolean |
selectedInUse |
int |
size |
Constructor and Description |
---|
VectorizedRowBatch(int numCols)
Return a batch with the specified number of columns.
|
VectorizedRowBatch(int numCols,
int size)
Return a batch with the specified number of columns and rows.
|
Modifier and Type | Method and Description |
---|---|
long |
count()
Return count of qualifying rows.
|
void |
ensureSize(int rows)
Set the maximum number of rows in the batch.
|
int |
getDataColumnCount() |
int |
getMaxSize()
Returns the maximum size of the batch (number of rows it can hold)
|
int |
getPartitionColumnCount() |
void |
readFields(DataInput arg0) |
void |
reset()
Resets the row batch to default state
- sets selectedInUse to false
- sets size to 0
- sets endOfFile to false
- resets each column
- inits each column
|
void |
setPartitionInfo(int dataColumnCount,
int partitionColumnCount) |
String |
toString() |
void |
write(DataOutput arg0) |
public int numCols
public ColumnVector[] cols
public int size
public int[] selected
public int[] projectedColumns
public int projectionSize
public boolean selectedInUse
public boolean endOfFile
public static final int DEFAULT_SIZE
public VectorizedRowBatch(int numCols)
numCols
- the number of columns to include in the batchpublic VectorizedRowBatch(int numCols, int size)
numCols
- the number of columns to include in the batchsize
- the number of rows to include in the batchpublic void setPartitionInfo(int dataColumnCount, int partitionColumnCount)
public int getDataColumnCount()
public int getPartitionColumnCount()
public int getMaxSize()
public long count()
public void readFields(DataInput arg0) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput arg0) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void reset()
public void ensureSize(int rows)
Copyright © 2016 The Apache Software Foundation. All rights reserved.