org.apache.expreval.expr.function
Class NumberFunction

java.lang.Object
  extended by org.apache.expreval.expr.GenericExpression
      extended by org.apache.expreval.expr.function.GenericFunction
          extended by org.apache.expreval.expr.function.NumberFunction
All Implemented Interfaces:
Serializable, GenericValue, NumberValue

public class NumberFunction
extends GenericFunction
implements NumberValue

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.expreval.expr.function.GenericFunction
GenericFunction.FunctionType
 
Field Summary
 
Fields inherited from interface org.apache.expreval.expr.node.GenericValue
serialVersionUID
 
Constructor Summary
NumberFunction(GenericFunction.FunctionType functionType, List<GenericValue> exprs)
           
 
Method Summary
 void applyResultToAggregateValue(AggregateValue aggVal, org.apache.hadoop.hbase.client.Result result)
           
 Number getValue(HConnectionImpl conn, Object object)
           
 void initAggregateValue(AggregateValue aggregateValue)
           
 
Methods inherited from class org.apache.expreval.expr.function.GenericFunction
asString, getFunctionName, getFunctionType, getOptimizedValue, getTypeSignature, isAConstant, isAnAggregateValue, isConstantDate, isIntervalDate, validateTypes
 
Methods inherited from class org.apache.expreval.expr.GenericExpression
getConstantValue, getExprArg, getExpressionContext, getFilter, getGenericValueClass, getGenericValueList, getInvalidTypeMsg, getSubArgs, getValueWithCast, getValueWithCast, hasAColumnReference, isAColumnReference, 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
 
Methods inherited from interface org.apache.expreval.expr.node.GenericValue
asString, getFilter, getOptimizedValue, hasAColumnReference, isAColumnReference, isAConstant, isAnAggregateValue, isDefaultKeyword, reset, setExpressionContext, validateTypes
 

Constructor Detail

NumberFunction

public NumberFunction(GenericFunction.FunctionType functionType,
                      List<GenericValue> exprs)
Method Detail

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 aggVal,
                                        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

getValue

public Number getValue(HConnectionImpl conn,
                       Object object)
                throws HBqlException,
                       ResultMissingColumnException,
                       NullColumnValueException
Specified by:
getValue in interface GenericValue
Specified by:
getValue in interface NumberValue
Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException


Copyright © 2011. All Rights Reserved.