org.apache.expreval.expr.var
Class NamedParameter

java.lang.Object
  extended by org.apache.expreval.expr.var.NamedParameter
All Implemented Interfaces:
Serializable, GenericValue

public class NamedParameter
extends Object
implements GenericValue

See Also:
Serialized Form

Nested Class Summary
static class NamedParameter.NamedParameterComparator
           
 
Field Summary
 
Fields inherited from interface org.apache.expreval.expr.node.GenericValue
serialVersionUID
 
Constructor Summary
NamedParameter()
           
NamedParameter(String paramName)
           
 
Method Summary
 void applyResultToAggregateValue(AggregateValue aggregateValue, org.apache.hadoop.hbase.client.Result result)
           
 String asString()
           
static Comparator<? super NamedParameter> getComparator()
           
 org.apache.hadoop.hbase.filter.Filter getFilter()
           
 GenericValue getOptimizedValue()
           
 String getParamName()
           
 long getPosition()
           
 Object 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)
           
 void setParameter(Object val)
           
 String toString()
           
 Class<? extends GenericValue> validateTypes(GenericValue parentExpr, boolean allowCollections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedParameter

public NamedParameter()

NamedParameter

public NamedParameter(String paramName)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getParamName

public String getParamName()

getPosition

public long getPosition()

getOptimizedValue

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

isAConstant

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

hasAColumnReference

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

isAColumnReference

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

isDefaultKeyword

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

isAnAggregateValue

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

setExpressionContext

public void setExpressionContext(MultipleExpressionContext context)
Specified by:
setExpressionContext 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

reset

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

validateTypes

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

getValue

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

setParameter

public void setParameter(Object val)
                  throws HBqlException
Throws:
HBqlException

asString

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

getComparator

public static Comparator<? super NamedParameter> getComparator()

getFilter

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


Copyright © 2011. All Rights Reserved.