|
|||||||||
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.SqlPrefixOperator
public class SqlPrefixOperator
A unary operator.
Field Summary |
---|
Fields inherited from class org.eigenbase.sql.SqlOperator |
---|
MaxPrec, NL |
Constructor Summary | |
---|---|
SqlPrefixOperator(String name,
SqlKind kind,
int prec,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker)
|
Method Summary | |
---|---|
protected RelDataType |
adjustType(SqlValidator validator,
SqlCall call,
RelDataType type)
Validates and determines coercibility and resulting collation name of binary operator if needed. |
SqlMonotonicity |
getMonotonicity(SqlCall call,
SqlValidatorScope scope)
Returns whether this operator is monotonic. |
String |
getSignatureTemplate(int operandsCount)
Returns a template describing how the operator signature is to be built. |
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SqlPrefixOperator(String name, SqlKind kind, int prec, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, SqlOperandTypeChecker operandTypeChecker)
Method Detail |
---|
public SqlSyntax getSyntax()
SqlOperator
getSyntax
in class SqlOperator
public String getSignatureTemplate(int operandsCount)
SqlOperator
getSignatureTemplate
in class SqlOperator
operandsCount
- is used with functions that can take a variable
number of operands
protected RelDataType adjustType(SqlValidator validator, SqlCall call, RelDataType type)
SqlOperator
adjustType
in class SqlOperator
public SqlMonotonicity getMonotonicity(SqlCall call, SqlValidatorScope scope)
SqlOperator
Default implementation returns SqlMonotonicity.NotMonotonic
.
getMonotonicity
in class SqlOperator
call
- Call to this operatorscope
- Scope in which the call occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |