public class DistinctCountParseNode extends DelegateConstantToCountParseNode
FunctionParseNode.Argument, FunctionParseNode.BuiltInFunction, FunctionParseNode.BuiltInFunctionArgInfo, FunctionParseNode.BuiltInFunctionInfo, FunctionParseNode.FunctionClassType
Constructor and Description |
---|
DistinctCountParseNode(String name,
List<ParseNode> children,
FunctionParseNode.BuiltInFunctionInfo info) |
Modifier and Type | Method and Description |
---|---|
FunctionExpression |
create(List<Expression> children,
StatementContext context)
Entry point for parser to instantiate compiled representation of built-in function
|
void |
toSQL(ColumnResolver resolver,
StringBuilder buf) |
getDelegateFunction
isStateless
accept, create, equals, evalToNullIfParamIsNull, getInfo, getName, hashCode, isAggregate, validate, validateFunctionArguement
getChildren
public DistinctCountParseNode(String name, List<ParseNode> children, FunctionParseNode.BuiltInFunctionInfo info)
public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException
FunctionParseNode
create
in class DelegateConstantToCountParseNode
children
- Compiled expressions for child nodescontext
- Query context for accessing state shared across the processing of multiple clausesSQLException
public void toSQL(ColumnResolver resolver, StringBuilder buf)
toSQL
in class FunctionParseNode
Copyright © 2017 Apache Software Foundation. All Rights Reserved.