|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch
public class VectorizedRowBatch
A VectorizedRowBatch is a set of rows, organized with each column as a vector. It is the unit of query execution, organized to minimize the cost per row and achieve high cycles-per-instruction. The major fields are public by design to allow fast and convenient access by the vectorized query execution code.
Field Summary | |
---|---|
ColumnVector[] |
cols
|
static int |
DEFAULT_SIZE
|
boolean |
endOfFile
|
int |
numCols
|
int[] |
projectedColumns
|
int |
projectionSize
|
int[] |
selected
|
boolean |
selectedInUse
|
int |
size
|
VectorExpressionWriter[] |
valueWriters
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
long |
count()
Return count of qualifying rows. |
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 |
void |
setValueWriters(VectorExpressionWriter[] valueWriters)
|
String |
toString()
|
void |
write(DataOutput arg0)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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 batchMethod Detail |
---|
public long count()
public String toString()
toString
in class Object
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |