|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.SqlOperator
org.eigenbase.sql.SqlBinaryOperator
org.eigenbase.sql.fun.SqlInOperator
public class SqlInOperator
Definition of the SQL IN operator, which tests for a value's
membership in a subquery or a list of values.
| Field Summary | |
|---|---|
private boolean |
isNotIn
If true the call represents 'NOT IN'. |
| Fields inherited from class org.eigenbase.sql.SqlOperator |
|---|
MaxPrec, NL |
| Constructor Summary | |
|---|---|
SqlInOperator(boolean isNotIn)
Creates a SqlInOperator |
|
| Method Summary | |
|---|---|
boolean |
argumentMustBeScalar(int ordinal)
Returns whether the ordinalth argument to this operator must
be scalar (as opposed to a query). |
RelDataType |
deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Derives the type of a call to this operator. |
boolean |
isNotIn()
Returns whether this is the 'NOT IN' operator |
| Methods inherited from class org.eigenbase.sql.SqlBinaryOperator |
|---|
adjustType, getMonotonicity, getSignatureTemplate, getSyntax |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final boolean isNotIn
| Constructor Detail |
|---|
SqlInOperator(boolean isNotIn)
isNotIn - Whether this is the 'NOT IN' operator| Method Detail |
|---|
public boolean isNotIn()
public RelDataType deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
SqlOperatorThis method is an intrinsic part of the validation process so, unlike
SqlOperator.inferReturnType(org.eigenbase.sql.SqlOperatorBinding), specific operators would not typically override
this method.
deriveType in class SqlBinaryOperatorvalidator - Validatorscope - Scope of validationcall - Call to this operator
public boolean argumentMustBeScalar(int ordinal)
SqlOperatorordinalth 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.
argumentMustBeScalar in class SqlOperator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||