FALSE, TRUEABS_VAL, ARGS_VAL, CMP_EQUAL, COALESCE_VAL, CONCAT_VAL, FORCE_OUTER, GENERALCASE_VAL, INDEXOF_VAL, JOIN_REL, LENGTH_VAL, LOCATE_VAL, LOWER_VAL, MATH_VAL, NULL_CMP, NULLIF_VAL, SIMPLECASE_VAL, SQRT_VAL, SUBSTRING_VAL, TRIM_VAL, UPPER_VAL, VAL, WHENCONDITION_VAL, WHENSCALAR_VAL| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql,
int index)
Overrides SQL formation by replacing COUNT(column) by COUNT(*) when specific conditions are met and
DBDictionary configuration
useWildCardForCount is set. |
protected java.lang.String |
getOperator()
Return the name of this operator.
|
protected java.lang.Class |
getType(java.lang.Class c)
Return the type of this value based on the argument type.
|
ExpState |
initialize(Select sel,
ExpContext ctx,
int flags)
Initialize the value.
|
boolean |
isAggregate()
Return true if this value is an aggregate.
|
boolean |
isCountDistinctMultiCols() |
acceptVisit, calculateValue, getMetaData, getNoParen, getType, getValue, groupBy, initializeValue, length, load, orderBy, select, selectColumns, setImplicitType, setMetaDataappendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, appendType, getAlias, getId, getName, getPath, getSelectAs, isVariable, isXPath, setAlias, toDataStoreValuepublic Count(Val val)
public ExpState initialize(Select sel, ExpContext ctx, int flags)
Valinitialize in interface Valinitialize in class UnaryOpprotected java.lang.Class getType(java.lang.Class c)
UnaryOpprotected java.lang.String getOperator()
UnaryOpgetOperator in class UnaryOppublic boolean isAggregate()
ValueisAggregate in interface ValueisAggregate in class AbstractValpublic boolean isCountDistinctMultiCols()
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
useWildCardForCount is set.Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.