org.apache.hadoop.hbase.hbql.statement.select
Class SelectExpressionContext
java.lang.Object
org.apache.expreval.expr.MultipleExpressionContext
org.apache.hadoop.hbase.hbql.statement.select.SelectExpressionContext
- All Implemented Interfaces:
- Serializable, SelectElement
public class SelectExpressionContext
- extends MultipleExpressionContext
- implements SelectElement
- See Also:
- Serialized Form
Methods inherited from class org.apache.expreval.expr.MultipleExpressionContext |
addColumnToUsedList, addExpression, addNamedParameter, evaluate, evaluateConstant, getAttribsUsedInExpr, getColumnsUsedInExpr, getExpressionList, getGenericValue, getMapping, getMappingContext, getNamedParamMap, getParameterList, getResultAccessor, getTableMapping, optimize, reset, setGenericValue, setMappingContext, setParameter, validateTypes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newExpression
public static SelectExpressionContext newExpression(GenericValue expr,
String as)
getAsName
public String getAsName()
- Specified by:
getAsName
in interface SelectElement
isAnAggregateElement
public boolean isAnAggregateElement()
- Specified by:
isAnAggregateElement
in interface SelectElement
initAggregateValue
public void initAggregateValue(AggregateValue aggregateValue)
throws HBqlException
- Throws:
HBqlException
applyResultToAggregateValue
public void applyResultToAggregateValue(AggregateValue aggregateValue,
org.apache.hadoop.hbase.client.Result result)
throws HBqlException,
ResultMissingColumnException,
NullColumnValueException
- Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException
getElementName
public String getElementName()
- Specified by:
getElementName
in interface SelectElement
isAFamilySelect
public boolean isAFamilySelect()
- Specified by:
isAFamilySelect
in interface SelectElement
hasAsName
public boolean hasAsName()
- Specified by:
hasAsName
in interface SelectElement
isADelegateColumnReference
public boolean isADelegateColumnReference()
isAConstant
public boolean isAConstant()
isDefaultKeyword
public boolean isDefaultKeyword()
hasAColumnReference
public boolean hasAColumnReference()
isAKeyValue
public boolean isAKeyValue()
getExpressionType
public Class<? extends GenericValue> getExpressionType()
throws HBqlException
- Throws:
HBqlException
validate
public void validate(MappingContext mappingContext,
HConnection connection)
throws HBqlException
- Specified by:
validate
in interface SelectElement
- Throws:
HBqlException
assignAsNamesForExpressions
public void assignAsNamesForExpressions(SelectStatement selectStatement)
- Specified by:
assignAsNamesForExpressions
in interface SelectElement
assignSelectValue
public void assignSelectValue(HConnectionImpl conn,
Object obj,
int maxVerions,
org.apache.hadoop.hbase.client.Result result)
throws HBqlException
- Specified by:
assignSelectValue
in interface SelectElement
- Throws:
HBqlException
newAggregateValue
public AggregateValue newAggregateValue()
throws HBqlException
- Specified by:
newAggregateValue
in interface SelectElement
- Throws:
HBqlException
getValue
public Object getValue(HConnectionImpl conn,
org.apache.hadoop.hbase.client.Result result)
throws HBqlException
- Throws:
HBqlException
asString
public String asString()
- Specified by:
asString
in interface SelectElement
- Specified by:
asString
in class MultipleExpressionContext
useResultData
public boolean useResultData()
- Specified by:
useResultData
in class MultipleExpressionContext
allowColumns
public boolean allowColumns()
- Specified by:
allowColumns
in class MultipleExpressionContext
Copyright © 2011. All Rights Reserved.