|
||||||||||
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.expressions.VectorExpression
public abstract class VectorExpression
Base class for expressions.
Nested Class Summary | |
---|---|
static class |
VectorExpression.Type
|
Constructor Summary | |
---|---|
VectorExpression()
|
Method Summary | |
---|---|
abstract void |
evaluate(VectorizedRowBatch batch)
This is the primary method to implement expression logic. |
VectorExpression[] |
getChildExpressions()
|
abstract VectorExpressionDescriptor.Descriptor |
getDescriptor()
|
VectorExpression.Type[] |
getInputTypes()
|
abstract int |
getOutputColumn()
Returns the index of the output column in the array of column vectors. |
String |
getOutputType()
Returns type of the output column. |
void |
setChildExpressions(VectorExpression[] ve)
Initialize the child expressions. |
void |
setInputTypes(VectorExpression.Type... inputTypes)
Set more detailed types to distinguish certain types that is represented in same VectorExpressionDescriptor.ArgumentType s. |
void |
setOutputType(String type)
Set type of the output column. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VectorExpression()
Method Detail |
---|
public abstract void evaluate(VectorizedRowBatch batch)
batch
- public abstract int getOutputColumn()
public String getOutputType()
public void setOutputType(String type)
public void setChildExpressions(VectorExpression[] ve)
public VectorExpression[] getChildExpressions()
public abstract VectorExpressionDescriptor.Descriptor getDescriptor()
public void setInputTypes(VectorExpression.Type... inputTypes)
VectorExpressionDescriptor.ArgumentType
s. For example, date and
timestamp will be in LongColumnVector
but they need to be
distinguished.
inputTypes
- public VectorExpression.Type[] getInputTypes()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |