org.eigenbase.sql
Class SqlUnnestOperator
java.lang.Object
org.eigenbase.sql.SqlOperator
org.eigenbase.sql.SqlSpecialOperator
org.eigenbase.sql.SqlFunctionalOperator
org.eigenbase.sql.SqlUnnestOperator
public class SqlUnnestOperator
- extends SqlFunctionalOperator
The UNNESToperator.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/SqlUnnestOperator.java#9 $
- Author:
- Wael Chatila
|
Method Summary |
boolean |
argumentMustBeScalar(int ordinal)
Returns whether the ordinalth argument to this operator must
be scalar (as opposed to a query). |
RelDataType |
inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of an invocation of this operator; only called
after the number and types of operands have already been validated. |
| Methods inherited from class org.eigenbase.sql.SqlOperator |
acceptCall, acceptCall, adjustType, checkOperandCount, checkOperandTypes, createCall, createCall, createCall, createCall, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateCall, validateOperands |
SqlUnnestOperator
public SqlUnnestOperator()
inferReturnType
public RelDataType inferReturnType(SqlOperatorBinding opBinding)
- Description copied from class:
SqlOperator
- Infers the return type of an invocation of this operator; only called
after the number and types of operands have already been validated.
Subclasses must either override this method or supply an instance of
SqlReturnTypeInference to the constructor.
- Overrides:
inferReturnType in class SqlOperator
- Parameters:
opBinding - description of invocation (not necessarily a SqlCall)
- Returns:
- inferred return type
argumentMustBeScalar
public boolean argumentMustBeScalar(int ordinal)
- Description copied from class:
SqlOperator
- Returns whether the
ordinalth 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 subquery, which must have one column and return at
most one row.
Operators such as SELECT and EXISTS override
this method.
- Overrides:
argumentMustBeScalar in class SqlOperator