public class DelegateExpression extends Object implements Expression
Constructor and Description |
---|
DelegateExpression(Expression delegate) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ExpressionVisitor<T> visitor)
Means of traversing expression tree through visitor.
|
boolean |
evaluate(Tuple tuple,
ImmutableBytesWritable ptr)
Access the value by setting a pointer to it (as opposed to making
a copy of it which can be expensive)
|
List<Expression> |
getChildren() |
PDataType |
getDataType() |
Determinism |
getDeterminism() |
Integer |
getMaxLength() |
Integer |
getScale() |
SortOrder |
getSortOrder() |
boolean |
isNullable() |
boolean |
isStateless() |
void |
readFields(DataInput input) |
boolean |
requiresFinalEvaluation()
Determines if an evaluate is required after partial evaluation
is run.
|
void |
reset()
Resets the state of a expression back to its initial state and
enables the expession to be evaluated incrementally (which
occurs during filter evaluation where we see one key value at
a time; it's possible to evaluate immediately rather than
wait until all key values have been seen).
|
void |
write(DataOutput output) |
public DelegateExpression(Expression delegate)
public boolean isNullable()
isNullable
in interface PDatum
public PDataType getDataType()
getDataType
in interface PDatum
public Integer getMaxLength()
getMaxLength
in interface PDatum
public Integer getScale()
public SortOrder getSortOrder()
getSortOrder
in interface PDatum
public void readFields(DataInput input) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput output) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)
Expression
evaluate
in interface Expression
tuple
- Single row result during scan iterationptr
- Pointer to byte value being accessedpublic <T> T accept(ExpressionVisitor<T> visitor)
Expression
accept
in interface Expression
public List<Expression> getChildren()
getChildren
in interface Expression
public void reset()
Expression
reset
in interface Expression
public boolean isStateless()
isStateless
in interface Expression
SequenceResultIterator
,
but otherwise the Tuple may be null.public Determinism getDeterminism()
getDeterminism
in interface Expression
public boolean requiresFinalEvaluation()
Expression
requiresFinalEvaluation
in interface Expression
Copyright © 2015 Apache Software Foundation. All Rights Reserved.