|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.SqlOperator org.eigenbase.sql.SqlSpecialOperator org.eigenbase.sql.fun.SqlRowOperator
public class SqlRowOperator
SqlRowOperator represents the special ROW constructor.
TODO: describe usage for row-value construction and row-type construction (SQL supports both).
Field Summary |
---|
Fields inherited from class org.eigenbase.sql.SqlOperator |
---|
MaxPrec, NL |
Constructor Summary | |
---|---|
SqlRowOperator()
|
Method Summary | |
---|---|
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator. |
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. |
boolean |
requiresDecimalExpansion()
Method to check if call requires expansion when it has decimal operands. |
void |
unparse(SqlWriter writer,
SqlNode[] operands,
int leftPrec,
int rightPrec)
Writes 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.eigenbase.sql.SqlSpecialOperator |
---|
reduceExpr |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SqlRowOperator()
Method Detail |
---|
public SqlSyntax getSyntax()
SqlOperator
getSyntax
in class SqlSpecialOperator
public RelDataType inferReturnType(SqlOperatorBinding opBinding)
SqlOperator
SqlReturnTypeInference
to the constructor.
inferReturnType
in class SqlOperator
opBinding
- description of invocation (not necessarily a SqlCall
)
public void unparse(SqlWriter writer, SqlNode[] operands, int leftPrec, int rightPrec)
SqlOperator
The default implementation of this method delegates to SqlSyntax.unparse(org.eigenbase.sql.SqlWriter, org.eigenbase.sql.SqlOperator, org.eigenbase.sql.SqlNode[], int, int)
.
unparse
in class SqlSpecialOperator
public boolean requiresDecimalExpansion()
SqlOperator
requiresDecimalExpansion
in class SqlOperator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |