org.apache.expreval.expr.literal
Class GenericLiteral<T extends Serializable>

java.lang.Object
  extended by org.apache.expreval.expr.literal.GenericLiteral<T>
All Implemented Interfaces:
Serializable, GenericValue
Direct Known Subclasses:
BooleanLiteral, ByteLiteral, DateLiteral, DoubleLiteral, FloatLiteral, IntegerLiteral, LongLiteral, NullLiteral, ObjectLiteral, ShortLiteral, StringLiteral

public abstract class GenericLiteral<T extends Serializable>
extends Object
implements GenericValue

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.expreval.expr.node.GenericValue
serialVersionUID
 
Constructor Summary
GenericLiteral(T value)
           
 
Method Summary
 void applyResultToAggregateValue(AggregateValue aggregateValue, org.apache.hadoop.hbase.client.Result result)
           
 String asString()
           
 org.apache.hadoop.hbase.filter.Filter getFilter()
           
 GenericValue getOptimizedValue()
           
protected abstract  Class<? extends GenericValue> getReturnType()
           
 T getValue(HConnectionImpl conn, Object object)
           
 boolean hasAColumnReference()
           
 void initAggregateValue(AggregateValue aggregateValue)
           
 boolean isAColumnReference()
           
 boolean isAConstant()
           
 boolean isAnAggregateValue()
           
 boolean isDefaultKeyword()
           
 void reset()
           
 void setExpressionContext(MultipleExpressionContext context)
           
 Class<? extends GenericValue> validateTypes(GenericValue parentExpr, boolean allowCollections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericLiteral

public GenericLiteral(T value)
Method Detail

getValue

public T getValue(HConnectionImpl conn,
                  Object object)
Specified by:
getValue in interface GenericValue

getOptimizedValue

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

isAConstant

public boolean isAConstant()
Specified by:
isAConstant in interface GenericValue

isDefaultKeyword

public boolean isDefaultKeyword()
Specified by:
isDefaultKeyword in interface GenericValue

isAnAggregateValue

public boolean isAnAggregateValue()
Specified by:
isAnAggregateValue in interface GenericValue

initAggregateValue

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

applyResultToAggregateValue

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

hasAColumnReference

public boolean hasAColumnReference()
Specified by:
hasAColumnReference in interface GenericValue

isAColumnReference

public boolean isAColumnReference()
Specified by:
isAColumnReference in interface GenericValue

reset

public void reset()
Specified by:
reset in interface GenericValue

setExpressionContext

public void setExpressionContext(MultipleExpressionContext context)
Specified by:
setExpressionContext in interface GenericValue

validateTypes

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

getReturnType

protected abstract Class<? extends GenericValue> getReturnType()

asString

public String asString()
Specified by:
asString in interface GenericValue

getFilter

public org.apache.hadoop.hbase.filter.Filter getFilter()
                                                throws HBqlException
Specified by:
getFilter in interface GenericValue
Throws:
HBqlException


Copyright © 2011. All Rights Reserved.