Package org.apache.calcite.sql.fun
Class SqlSingleValueAggFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.SqlAggFunction
org.apache.calcite.sql.fun.SqlSingleValueAggFunction
SINGLE_VALUE aggregate function returns the input value if there
 is only one value in the input; Otherwise it triggers a run-time error.- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanWhether this aggregate function allows aFILTER (WHERE ...)clause.Returns whether this aggregate function allows theDISTINCTkeyword.getParameterTypes(RelDataTypeFactory typeFactory) getReturnType(RelDataTypeFactory typeFactory) Gets rollup aggregation function.getType()Deprecated.<T> @Nullable TFinds an instance of an interface implemented by this object, or returns null if this object does not support that interface.Methods inherited from class org.apache.calcite.sql.SqlAggFunctionallowsNullTreatment, isAggregator, isPercentile, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, validateCallMethods inherited from class org.apache.calcite.sql.SqlFunctionderiveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifierMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getSqlCallFactory, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.WrappermaybeUnwrap, unwrapOrThrow
- 
Constructor Details- 
SqlSingleValueAggFunction
 
- 
- 
Method Details- 
allowsFilterpublic boolean allowsFilter()Description copied from class:SqlAggFunctionWhether this aggregate function allows aFILTER (WHERE ...)clause.- Overrides:
- allowsFilterin class- SqlAggFunction
 
- 
getParameterTypes- Overrides:
- getParameterTypesin class- SqlAggFunction
 
- 
getReturnType- Overrides:
- getReturnTypein class- SqlAggFunction
 
- 
getTypeDeprecated.
- 
unwrapDescription copied from interface:WrapperFinds an instance of an interface implemented by this object, or returns null if this object does not support that interface.- Specified by:
- unwrapin interface- Wrapper
- Overrides:
- unwrapin class- SqlAggFunction
 
- 
getDistinctOptionalityDescription copied from class:SqlAggFunctionReturns whether this aggregate function allows theDISTINCTkeyword.The default implementation returns Optionality.OPTIONAL, which is appropriate for most aggregate functions, includingSUMandCOUNT.Some aggregate functions, for example MIN, produce the same result with or withoutDISTINCT, and therefore returnOptionality.IGNOREDto indicate this. For such functions, Calcite will probably removeDISTINCTwhile optimizing the query.- Overrides:
- getDistinctOptionalityin class- SqlAggFunction
 
- 
getRollupDescription copied from class:SqlAggFunctionGets rollup aggregation function.- Overrides:
- getRollupin class- SqlAggFunction
 
 
-