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 |
VectorExpressionWriter[] |
valueWriters |
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.
|
int |
getMaxSize()
Returns the maximum size of the batch (number of rows it can hold)
|
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 |
setValueWriters(VectorExpressionWriter[] valueWriters) |
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 VectorExpressionWriter[] valueWriters
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 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 setValueWriters(VectorExpressionWriter[] valueWriters)
public void reset()
Copyright © 2017 The Apache Software Foundation. All rights reserved.