|
|||||||||
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.SqlJoinOperator
public class SqlJoinOperator
SqlJoinOperator
describes the syntax of the SQL
JOIN
operator. Since there is only one such operator, this class is
almost certainly a singleton.
Nested Class Summary | |
---|---|
static class |
SqlJoinOperator.ConditionType
Enumerates the types of condition in a join expression. |
static class |
SqlJoinOperator.JoinType
Enumerates the types of join. |
Field Summary | |
---|---|
private static SqlWriter.FrameType |
UsingFrameType
|
Fields inherited from class org.eigenbase.sql.SqlOperator |
---|
MaxPrec, NL |
Constructor Summary | |
---|---|
SqlJoinOperator()
|
Method Summary | |
---|---|
SqlCall |
createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands)
Creates a call to this operand with an array of operands. |
SqlCall |
createCall(SqlNode left,
SqlLiteral isNatural,
SqlLiteral joinType,
SqlNode right,
SqlLiteral conditionType,
SqlNode condition,
SqlParserPos pos)
|
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator. |
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final SqlWriter.FrameType UsingFrameType
Constructor Detail |
---|
public SqlJoinOperator()
Method Detail |
---|
public SqlSyntax getSyntax()
SqlOperator
getSyntax
in class SqlOperator
public SqlCall createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlOperator
The position of the resulting call is the union of the
pos
and the positions of all of the operands.
createCall
in class SqlOperator
functionQualifier
- function qualifier (e.g. "DISTINCT"), may bepos
- parser position of the identifier of the calloperands
- array of operandspublic SqlCall createCall(SqlNode left, SqlLiteral isNatural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, SqlNode condition, SqlParserPos pos)
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 SqlOperator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |