org.apache.expreval.expr.compare
Class GenericCompare

java.lang.Object
  extended by org.apache.expreval.expr.GenericExpression
      extended by org.apache.expreval.expr.compare.GenericCompare
All Implemented Interfaces:
Serializable, BooleanValue, GenericValue
Direct Known Subclasses:
BooleanCompare, ByteCompare, DateCompare, DelegateCompare, NumberCompare, StringCompare

public abstract class GenericCompare
extends GenericExpression
implements BooleanValue

See Also:
Serialized Form

Nested Class Summary
protected static class GenericCompare.GenericComparable<T>
           
 
Field Summary
 
Fields inherited from interface org.apache.expreval.expr.node.GenericValue
serialVersionUID
 
Constructor Summary
protected GenericCompare(GenericValue arg0, Operator operator, GenericValue arg1)
           
 
Method Summary
 String asString()
           
protected  Operator getOperator()
           
 GenericValue getOptimizedValue()
           
protected  Object getValue(int pos, HConnectionImpl conn, Object object)
           
protected  void validateArgsForCompareFilter()
           
protected  Class<? extends GenericValue> validateType(Class<? extends GenericValue> clazz)
           
 
Methods inherited from class org.apache.expreval.expr.GenericExpression
applyResultToAggregateValue, getConstantValue, getExprArg, getExpressionContext, getFilter, getGenericValueClass, getGenericValueList, getInvalidTypeMsg, getSubArgs, getTypeSignature, getValueWithCast, getValueWithCast, hasAColumnReference, initAggregateValue, isAColumnReference, isAConstant, isAnAggregateValue, isDefaultKeyword, newSingleColumnValueFilter, optimizeAllArgs, reset, setArg, setExpressionContext, useDecimal, validateNumericArgTypes, validateNumericTypes, validateParentClass, validateTypes
 
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.BooleanValue
getValue
 
Methods inherited from interface org.apache.expreval.expr.node.GenericValue
applyResultToAggregateValue, getFilter, hasAColumnReference, initAggregateValue, isAColumnReference, isAConstant, isAnAggregateValue, isDefaultKeyword, reset, setExpressionContext, validateTypes
 

Constructor Detail

GenericCompare

protected GenericCompare(GenericValue arg0,
                         Operator operator,
                         GenericValue arg1)
Method Detail

getOperator

protected Operator getOperator()

getValue

protected Object getValue(int pos,
                          HConnectionImpl conn,
                          Object object)
                   throws HBqlException,
                          ResultMissingColumnException,
                          NullColumnValueException
Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException

validateArgsForCompareFilter

protected void validateArgsForCompareFilter()
                                     throws InvalidServerFilterException
Throws:
InvalidServerFilterException

getOptimizedValue

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

validateType

protected Class<? extends GenericValue> validateType(Class<? extends GenericValue> clazz)
                                              throws InvalidTypeException
Throws:
InvalidTypeException

asString

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


Copyright © 2011. All Rights Reserved.