org.apache.expreval.expr.function
Class DelegateFunction

java.lang.Object
  extended by org.apache.expreval.expr.GenericExpression
      extended by org.apache.expreval.expr.DelegateStmt<GenericFunction>
          extended by org.apache.expreval.expr.function.DelegateFunction
All Implemented Interfaces:
Serializable, GenericValue

public class DelegateFunction
extends DelegateStmt<GenericFunction>

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.expreval.expr.node.GenericValue
serialVersionUID
 
Constructor Summary
DelegateFunction(String functionName, List<GenericValue> exprList)
           
 
Method Summary
 void applyResultToAggregateValue(AggregateValue aggregateValue, org.apache.hadoop.hbase.client.Result result)
           
 String asString()
           
 String getFunctionName()
           
 GenericValue getOptimizedValue()
           
 Object getValue(HConnectionImpl conn, Object object)
           
 void initAggregateValue(AggregateValue aggregateValue)
           
 boolean isAnAggregateValue()
           
 Class<? extends GenericValue> validateTypes(GenericValue parentExpr, boolean allowCollections)
           
 
Methods inherited from class org.apache.expreval.expr.DelegateStmt
getTypedExpr, setTypedExpr
 
Methods inherited from class org.apache.expreval.expr.GenericExpression
getConstantValue, getExprArg, getExpressionContext, getFilter, getGenericValueClass, getGenericValueList, getInvalidTypeMsg, getSubArgs, getTypeSignature, getValueWithCast, getValueWithCast, hasAColumnReference, isAColumnReference, isAConstant, isDefaultKeyword, newSingleColumnValueFilter, optimizeAllArgs, reset, setArg, setExpressionContext, useDecimal, validateNumericArgTypes, validateNumericTypes, validateParentClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateFunction

public DelegateFunction(String functionName,
                        List<GenericValue> exprList)
Method Detail

validateTypes

public Class<? extends GenericValue> validateTypes(GenericValue parentExpr,
                                                   boolean allowCollections)
                                            throws HBqlException
Specified by:
validateTypes in interface GenericValue
Overrides:
validateTypes in class GenericExpression
Throws:
HBqlException

isAnAggregateValue

public boolean isAnAggregateValue()
Specified by:
isAnAggregateValue in interface GenericValue
Overrides:
isAnAggregateValue in class GenericExpression

getOptimizedValue

public GenericValue getOptimizedValue()
                               throws HBqlException
Specified by:
getOptimizedValue in interface GenericValue
Overrides:
getOptimizedValue in class GenericExpression
Throws:
HBqlException

getValue

public Object getValue(HConnectionImpl conn,
                       Object object)
                throws HBqlException,
                       ResultMissingColumnException,
                       NullColumnValueException
Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException

initAggregateValue

public void initAggregateValue(AggregateValue aggregateValue)
                        throws HBqlException
Specified by:
initAggregateValue in interface GenericValue
Overrides:
initAggregateValue in class GenericExpression
Throws:
HBqlException

applyResultToAggregateValue

public void applyResultToAggregateValue(AggregateValue aggregateValue,
                                        org.apache.hadoop.hbase.client.Result result)
                                 throws HBqlException,
                                        ResultMissingColumnException,
                                        NullColumnValueException
Specified by:
applyResultToAggregateValue in interface GenericValue
Overrides:
applyResultToAggregateValue in class GenericExpression
Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException

getFunctionName

public String getFunctionName()

asString

public String asString()
Specified by:
asString in interface GenericValue
Overrides:
asString in class GenericExpression


Copyright © 2011. All Rights Reserved.