Package org.apache.calcite.sql
Class SqlSetSemanticsTableOperator
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlSpecialOperator
org.apache.calcite.sql.SqlInternalOperator
org.apache.calcite.sql.SqlSetSemanticsTableOperator
SetSemanticsTable appears as an parameter in a table function.
 It represents as an input table with set semantics.
 Set semantics means that the outcome of the function depends on how
 the data is partitioned.
 When the table function is called from a query, the table parameter can
 optionally be extended with either a PARTITION BY clause or
 an ORDER BY clause or both.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.calcite.sql.SqlSpecialOperatorSqlSpecialOperator.ReduceResult, SqlSpecialOperator.TokenSequence
- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanargumentMustBeScalar(int ordinal) Returns whether theordinalth argument to this operator must be scalar (as opposed to a query).createCall(@Nullable SqlLiteral functionQualifier, SqlParserPos pos, @Nullable SqlNode... operands) Creates a call to this operator with an array of operands.deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) Derives the type of a call to this operator.voidWrites a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.Methods inherited from class org.apache.calcite.sql.SqlInternalOperatorgetSyntaxMethods inherited from class org.apache.calcite.sql.SqlSpecialOperatorreduceExprMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, acceptCall, adjustType, allowsFraming, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getNameAsId, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getSqlCallFactory, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperands
- 
Constructor Details- 
SqlSetSemanticsTableOperatorpublic SqlSetSemanticsTableOperator()
 
- 
- 
Method Details- 
createCallpublic SqlCall createCall(@Nullable SqlLiteral functionQualifier, SqlParserPos pos, @Nullable SqlNode... operands) Description copied from class:SqlOperatorCreates a call to this operator with an array of operands.The position of the resulting call is the union of the posand the positions of all of the operands.- Overrides:
- createCallin class- SqlOperator
- Parameters:
- functionQualifier- Function qualifier (e.g. "DISTINCT"), or null
- pos- Parser position of the identifier of the call
- operands- Array of operands
 
- 
unparseDescription copied from class:SqlOperatorWrites a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.The default implementation of this method delegates to SqlSyntax.unparse(org.apache.calcite.sql.SqlWriter, org.apache.calcite.sql.SqlOperator, org.apache.calcite.sql.SqlCall, int, int).- Overrides:
- unparsein class- SqlOperator
 
- 
deriveTypeDescription copied from class:SqlOperatorDerives the type of a call to this operator.This method is an intrinsic part of the validation process so, unlike SqlOperator.inferReturnType(org.apache.calcite.sql.SqlOperatorBinding), specific operators would not typically override this method.- Overrides:
- deriveTypein class- SqlInternalOperator
- Parameters:
- validator- Validator
- scope- Scope of validation
- call- Call to this operator
- Returns:
- Type of call
 
- 
argumentMustBeScalarpublic boolean argumentMustBeScalar(int ordinal) Description copied from class:SqlOperatorReturns whether theordinalth argument to this operator must be scalar (as opposed to a query).If true (the default), the validator will attempt to convert the argument into a scalar sub-query, which must have one column and return at most one row. Operators such as SELECTandEXISTSoverride this method.- Overrides:
- argumentMustBeScalarin class- SqlOperator
 
 
-