|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.exec.vector.ColumnVector
public abstract class ColumnVector
ColumnVector contains the shared structure for the sub-types, including NULL information, and whether this vector repeats, i.e. has all values the same, so only the first one is set. This is used to accelerate query performance by handling a whole vector in O(1) time when applicable. The fields are public by design since this is a performance-critical structure that is used in the inner loop of query execution.
| Field Summary | |
|---|---|
boolean[] |
isNull
|
boolean |
isRepeating
|
boolean |
noNulls
|
| Constructor Summary | |
|---|---|
ColumnVector(int len)
Constructor for super-class ColumnVector. |
|
| Method Summary | |
|---|---|
abstract void |
flatten(boolean selectedInUse,
int[] sel,
int size)
|
void |
flattenNoNulls(boolean selectedInUse,
int[] sel,
int size)
|
protected void |
flattenPush()
|
void |
flattenRepeatingNulls(boolean selectedInUse,
int[] sel,
int size)
|
abstract org.apache.hadoop.io.Writable |
getWritableObject(int index)
|
void |
init()
Initialize the column vector. |
void |
reset()
Resets the column to default state - fills the isNull array with false - sets noNulls to true - sets isRepeating to false |
abstract void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector. |
void |
unFlatten()
Restore the state of isRepeating and noNulls to what it was before flattening. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean[] isNull
public boolean noNulls
public boolean isRepeating
| Constructor Detail |
|---|
public ColumnVector(int len)
len - Vector length| Method Detail |
|---|
public abstract org.apache.hadoop.io.Writable getWritableObject(int index)
public void reset()
public abstract void flatten(boolean selectedInUse,
int[] sel,
int size)
public void flattenRepeatingNulls(boolean selectedInUse,
int[] sel,
int size)
public void flattenNoNulls(boolean selectedInUse,
int[] sel,
int size)
public void unFlatten()
protected void flattenPush()
public abstract void setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
public void init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||