public class SqlBitOpAggFunction extends SqlAggFunction
BIT_AND and BIT_OR aggregate functions,
returning the bitwise AND/OR of all non-null input values, or null if none.
INTEGER and BINARY types are supported: tinyint, smallint, int, bigint, binary, varbinary
kind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlBitOpAggFunction(SqlKind kind)
Creates a SqlBitOpAggFunction.
|
| Modifier and Type | Method and Description |
|---|---|
Optionality |
getDistinctOptionality()
Returns whether this aggregate function allows the
DISTINCT
keyword. |
<T> T |
unwrap(Class<T> clazz)
Finds an instance of an interface implemented by this object,
or returns null if this object does not support that interface.
|
allowsFilter, allowsNullTreatment, getParameterTypes, getReturnType, getRollup, isAggregator, isPercentile, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, validateCallderiveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifieracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsclone, finalize, getClass, notify, notifyAll, wait, wait, waitmaybeUnwrap, unwrapOrThrowpublic SqlBitOpAggFunction(SqlKind kind)
public <T> T unwrap(Class<T> clazz)
Wrapperunwrap in interface Wrapperunwrap in class SqlAggFunctionpublic Optionality getDistinctOptionality()
SqlAggFunctionDISTINCT
keyword.
The default implementation returns Optionality.OPTIONAL,
which is appropriate for most aggregate functions, including SUM
and COUNT.
Some aggregate functions, for example MIN, produce the same
result with or without DISTINCT, and therefore return
Optionality.IGNORED to indicate this. For such functions,
Calcite will probably remove DISTINCT while optimizing the query.
getDistinctOptionality in class SqlAggFunctionCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.