|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.util.ReflectiveSqlOperatorTable org.eigenbase.sql.fun.SqlStdOperatorTable
public class SqlStdOperatorTable
Implementation of SqlOperatorTable
containing the
standard operators and functions.
Field Summary | |
---|---|
static SqlFunction |
absFunc
|
static SqlBinaryOperator |
andOperator
Logical AND operator. |
static SqlAsOperator |
asOperator
AS operator associates an expression in the SELECT clause
with an alias. |
static SqlAggFunction |
avgOperator
AVG aggregate function. |
static SqlBetweenOperator |
betweenOperator
|
static SqlFunction |
cardinalityFunc
The CARDINALITY operator, used to retrieve the number of elements in a MULTISET |
static SqlCaseOperator |
caseOperator
|
static SqlFunction |
castFunc
The SQL CAST operator. |
static SqlFunction |
ceilFunc
The CEIL function. |
static SqlFunction |
characterLengthFunc
|
static SqlFunction |
charLengthFunc
|
static SqlFunction |
coalesceFunc
The COALESCE builtin function. |
static SqlFunction |
collectFunc
The COLLECT operator. |
static SqlSpecialOperator |
collectionTableOperator
The "table function derived table" operator, which a table-valued function into a relation, e.g. |
static SqlColumnListConstructor |
columnListConstructor
The COLUMN_LIST constructor. |
static SqlBinaryOperator |
concatOperator
String concatenation operator, ' || '. |
static SqlFunction |
convertFunc
|
static SqlAggFunction |
countOperator
COUNT aggregate function. |
static SqlRankFunction |
cumeDistFunc
CUME_DIST Window function. |
static SqlFunction |
currentCatalogFunc
The CURRENT_CATALOG function. |
static SqlFunction |
currentDateFunc
The CURRENT_DATE function. |
static SqlFunction |
currentPathFunc
The CURRENT_PATH function. |
static SqlFunction |
currentRoleFunc
The CURRENT_ROLE function. |
static SqlFunction |
currentSchemaFunc
The CURRENT_SCHEMA function. |
static SqlFunction |
currentTimeFunc
The CURRENT_TIME [(precision)] function. |
static SqlFunction |
currentTimestampFunc
The CURRENT_TIMESTAMP [(precision)] function. |
static SqlFunction |
currentUserFunc
The CURRENT_USER function. |
static SqlCursorConstructor |
cursorConstructor
The CURSOR constructor. |
static SqlSpecialOperator |
deleteOperator
|
static SqlRankFunction |
denseRankFunc
DENSE_RANK Window function. |
static SqlPostfixOperator |
descendingOperator
|
static SqlBinaryOperator |
divideIntegerOperator
Internal integer arithmetic division operator, ' /INT '. |
static SqlBinaryOperator |
divideOperator
Arithmetic division operator, ' / '. |
static SqlBinaryOperator |
dotOperator
Dot operator, ' . ', used for referencing fields of records. |
static SqlFunction |
elementFunc
The ELEMENT operator, used to convert a multiset with only one item to a "regular" type. |
static SqlInternalOperator |
elementSlicefunc
The internal "$ELEMENT_SLICE" operator returns the first field of the only element of a multiset. |
static SqlBinaryOperator |
equalsOperator
Logical equals operator, ' = '. |
static SqlSpecialOperator |
escapeOperator
Internal operator used to represent the ESCAPE clause of a LIKE or SIMILAR TO expression. |
static SqlSetOperator |
exceptAllOperator
|
static SqlSetOperator |
exceptOperator
|
static SqlPrefixOperator |
existsOperator
|
static SqlFunction |
expFunc
|
static SqlSpecialOperator |
explainOperator
|
static SqlPrefixOperator |
explicitTableOperator
Keyword which allows an identifier to be explicitly flagged as a table. |
static SqlFunction |
extractFunc
The SQL EXTRACT operator. |
static SqlAggFunction |
firstValueOperator
FIRST_VALUE aggregate function. |
static SqlFunction |
floorFunc
The FLOOR function. |
static SqlFunction |
fusionFunc
The FUSION operator. |
static SqlBinaryOperator |
greaterThanOperator
Logical greater-than operator, ' > '. |
static SqlBinaryOperator |
greaterThanOrEqualOperator
Logical greater-than-or-equal operator, ' >= '. |
static SqlAggFunction |
histogramAggFunction
HISTORAM aggregate function support. |
static SqlFunction |
histogramFirstValueFunction
HISTOGRAM_FIRST_VALUE window aggregate function. |
static SqlFunction |
histogramLastValueFunction
HISTOGRAM_LAST_VALUE window aggregate function. |
static SqlFunction |
histogramMaxFunction
HISTOGRAM_MAX window aggregate function. |
static SqlFunction |
histogramMinFunction
HISTOGRAM_MIN window aggregate function. |
static SqlFunction |
initcapFunc
|
static SqlBinaryOperator |
inOperator
IN operator tests for a value's membership in a subquery or
a list of values. |
static SqlSpecialOperator |
insertOperator
|
private static SqlStdOperatorTable |
instance
The standard operator table. |
static SqlSetOperator |
intersectAllOperator
|
static SqlSetOperator |
intersectOperator
|
static SqlPostfixOperator |
isASetOperator
|
static SqlBinaryOperator |
isDifferentFromOperator
The internal $IS_DIFFERENT_FROM operator is the same as the
user-level isDistinctFromOperator in all respects except that
the test for equality on character datatypes treats trailing spaces as
significant. |
static SqlBinaryOperator |
isDistinctFromOperator
IS DISTINCT FROM operator. |
static SqlPostfixOperator |
isFalseOperator
|
static SqlBinaryOperator |
isNotDistinctFromOperator
IS NOT DISTINCT FROM operator. |
static SqlPostfixOperator |
isNotFalseOperator
|
static SqlPostfixOperator |
isNotNullOperator
|
static SqlPostfixOperator |
isNotTrueOperator
|
static SqlPostfixOperator |
isNotUnknownOperator
|
static SqlPostfixOperator |
isNullOperator
|
static SqlPostfixOperator |
isTrueOperator
|
static SqlPostfixOperator |
isUnknownOperator
|
static SqlJoinOperator |
joinOperator
|
static SqlAggFunction |
lastValueOperator
LAST_VALUE aggregate function. |
static SqlSpecialOperator |
lateralOperator
The LATERAL |
static SqlBinaryOperator |
lessThanOperator
Logical less-than operator, ' < '. |
static SqlBinaryOperator |
lessThanOrEqualOperator
Logical less-than-or-equal operator, ' <= '. |
static SqlSpecialOperator |
likeOperator
|
static SqlLiteralChainOperator |
literalChainOperator
|
static SqlFunction |
lnFunc
|
static SqlFunction |
localTimeFunc
The LOCALTIME [(precision)] function. |
static SqlFunction |
localTimestampFunc
The LOCALTIMESTAMP [(precision)] function. |
static SqlFunction |
log10Func
|
static SqlFunction |
lowerFunc
|
static SqlAggFunction |
maxOperator
MAX aggregate function. |
static SqlBinaryOperator |
memberOfOperator
Multiset MEMBER OF. |
static SqlSpecialOperator |
mergeOperator
|
static SqlAggFunction |
minOperator
MIN aggregate function. |
static SqlOperator |
minusDateOperator
A special operator for the subtraction of two DATETIMEs. |
static SqlBinaryOperator |
minusOperator
Infix arithmetic minus operator, ' - '. |
static SqlFunction |
modFunc
|
static SqlBinaryOperator |
multiplyOperator
Arithmetic multiplication operator, ' * '. |
static SqlMultisetSetOperator |
multisetExceptAllOperator
The "MULTISET EXCEPT ALL" operator. |
static SqlMultisetSetOperator |
multisetExceptOperator
The "MULTISET EXCEPT" operator. |
static SqlMultisetSetOperator |
multisetIntersectAllOperator
The "MULTISET INTERSECT ALL" operator. |
static SqlMultisetSetOperator |
multisetIntersectOperator
The "MULTISET INTERSECT" operator. |
static SqlMultisetQueryConstructor |
multisetQueryConstructor
The MULTISET Query Constructor. |
static SqlMultisetSetOperator |
multisetUnionAllOperator
The "MULTISET UNION ALL" operator. |
static SqlMultisetSetOperator |
multisetUnionOperator
The "MULTISET UNION" operator. |
static SqlMultisetValueConstructor |
multisetValueConstructor
The MULTISET Value Constructor. |
static SqlOperator |
newOperator
|
static SqlFunction |
nextValueFunc
The sequence next value function: NEXT VALUE FOR sequence |
static SqlBetweenOperator |
notBetweenOperator
|
static SqlBinaryOperator |
notEqualsOperator
Logical not-equals operator, ' <> '. |
static SqlBinaryOperator |
notInOperator
NOT IN operator tests for a value's membership in a subquery
or a list of values. |
static SqlSpecialOperator |
notLikeOperator
|
static SqlPrefixOperator |
notOperator
|
static SqlSpecialOperator |
notSimilarOperator
|
static SqlFunction |
nullIfFunc
|
static SqlOrderByOperator |
orderByOperator
|
static SqlBinaryOperator |
orOperator
Logical OR operator. |
static SqlOverlapsOperator |
overlapsOperator
|
static SqlFunction |
overlayFunc
|
static SqlBinaryOperator |
overOperator
The OVER operator, which applies an aggregate functions to a
window . |
static SqlRankFunction |
percentRankFunc
PERCENT_RANK Window function. |
static SqlBinaryOperator |
plusOperator
Infix arithmetic plus operator, ' + '. |
static SqlFunction |
positionFunc
|
static SqlFunction |
powerFunc
Uses SqlOperatorTable.useDouble for its return type since we don't know what the result type will be by just looking at the operand types. |
static SqlPrefixOperator |
prefixMinusOperator
Prefix arithmetic minus operator, ' - '. |
static SqlPrefixOperator |
prefixPlusOperator
Prefix arithmetic plus operator, ' + '. |
static SqlOperator |
procedureCallOperator
|
static SqlRankFunction |
rankFunc
RANK Window function. |
static SqlSpecialOperator |
reinterpretOperator
An REINTERPRET |
static SqlRowOperator |
rowConstructor
|
static SqlRankFunction |
rowNumberFunc
ROW_NUMBER Window function. |
static SqlSpecialOperator |
sampleFunction
The TABLESAMPLE operator. |
static SqlInternalOperator |
scalarQueryOperator
The internal "$SCALAR_QUERY" operator returns a scalar value from a record type. |
static SqlSelectOperator |
selectOperator
The standard SELECT operator. |
static SqlFunction |
sessionUserFunc
The SESSION_USER function. |
static SqlSpecialOperator |
similarOperator
|
static SqlAggFunction |
singleValueOperator
SINGLE_VALUE aggregate function. |
static SqlInternalOperator |
sliceOp
The internal "$SLICE" operator takes a multiset of records and returns a multiset of the first column of those records. |
static SqlBinaryOperator |
submultisetOfOperator
Submultiset. |
static SqlFunction |
substringFunc
The character substring function: SUBSTRING(string FROM start [FOR
length]) . |
static SqlAggFunction |
sumEmptyIsZeroOperator
SUM0 aggregate function. |
static SqlAggFunction |
sumOperator
SUM aggregate function. |
static SqlBetweenOperator |
symmetricBetweenOperator
|
static SqlBetweenOperator |
symmetricNotBetweenOperator
|
static SqlFunction |
systemUserFunc
The SYSTEM_USER function. |
static SqlInternalOperator |
throwOperator
|
static SqlFunction |
translateFunc
|
static SqlFunction |
trimFunc
The "TRIM" function. |
static SqlSetOperator |
unionAllOperator
|
static SqlSetOperator |
unionOperator
|
static SqlSpecialOperator |
unnestOperator
The UNNEST |
static SqlSpecialOperator |
updateOperator
|
static SqlFunction |
upperFunc
|
static SqlFunction |
userFunc
The USER function. |
static SqlSpecialOperator |
valuesOperator
|
static SqlWindowOperator |
windowOperator
The WINDOW clause of a SELECT statment. |
Constructor Summary | |
---|---|
SqlStdOperatorTable()
|
Method Summary | |
---|---|
static SqlStdOperatorTable |
instance()
Returns the standard operator table, creating it if necessary. |
Methods inherited from class org.eigenbase.sql.util.ReflectiveSqlOperatorTable |
---|
getOperatorList, init, lookupOperatorOverloads, register, register |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static SqlStdOperatorTable instance
public static final SqlSetOperator unionOperator
public static final SqlSetOperator unionAllOperator
public static final SqlSetOperator exceptOperator
public static final SqlSetOperator exceptAllOperator
public static final SqlSetOperator intersectOperator
public static final SqlSetOperator intersectAllOperator
public static final SqlMultisetSetOperator multisetUnionOperator
public static final SqlMultisetSetOperator multisetUnionAllOperator
public static final SqlMultisetSetOperator multisetExceptOperator
public static final SqlMultisetSetOperator multisetExceptAllOperator
public static final SqlMultisetSetOperator multisetIntersectOperator
public static final SqlMultisetSetOperator multisetIntersectAllOperator
public static final SqlBinaryOperator andOperator
AND
operator.
public static final SqlAsOperator asOperator
AS
operator associates an expression in the SELECT clause
with an alias.
public static final SqlBinaryOperator concatOperator
||
'.
public static final SqlBinaryOperator divideOperator
/
'.
public static final SqlBinaryOperator divideIntegerOperator
/INT
'. This
is only used to adjust scale for numerics. We distinguish it from
user-requested division since some personalities want a floating-point
computation, whereas for the internal scaling use of division, we always
want integer division.
public static final SqlBinaryOperator dotOperator
.
', used for referencing fields of records.
public static final SqlBinaryOperator equalsOperator
=
'.
public static final SqlBinaryOperator greaterThanOperator
>
'.
public static final SqlBinaryOperator isDistinctFromOperator
IS DISTINCT FROM
operator.
public static final SqlBinaryOperator isNotDistinctFromOperator
IS NOT DISTINCT FROM
operator. Is equivalent to NOT(x
IS DISTINCT FROM y)
public static final SqlBinaryOperator isDifferentFromOperator
$IS_DIFFERENT_FROM
operator is the same as the
user-level isDistinctFromOperator
in all respects except that
the test for equality on character datatypes treats trailing spaces as
significant.
public static final SqlBinaryOperator greaterThanOrEqualOperator
>=
'.
public static final SqlBinaryOperator inOperator
IN
operator tests for a value's membership in a subquery or
a list of values.
public static final SqlBinaryOperator notInOperator
NOT IN
operator tests for a value's membership in a subquery
or a list of values.
public static final SqlBinaryOperator lessThanOperator
<
'.
public static final SqlBinaryOperator lessThanOrEqualOperator
<=
'.
public static final SqlBinaryOperator minusOperator
public static final SqlBinaryOperator multiplyOperator
*
'.
public static final SqlBinaryOperator notEqualsOperator
<>
'.
public static final SqlBinaryOperator orOperator
OR
operator.
public static final SqlBinaryOperator plusOperator
+
'.
public static final SqlBinaryOperator memberOfOperator
'green' MEMBER OF MULTISET['red','almost green','blue']
returns false
.
public static final SqlBinaryOperator submultisetOfOperator
MULTISET['green'] SUBMULTISET OF MULTISET['red','almost
green','blue']
returns false
.
But MULTISET['blue', 'red'] SUBMULTISET OF
MULTISET['red','almost green','blue']
returns true
(NB multisets is order independant)
public static final SqlPostfixOperator descendingOperator
public static final SqlPostfixOperator isNotNullOperator
public static final SqlPostfixOperator isNullOperator
public static final SqlPostfixOperator isNotTrueOperator
public static final SqlPostfixOperator isTrueOperator
public static final SqlPostfixOperator isNotFalseOperator
public static final SqlPostfixOperator isFalseOperator
public static final SqlPostfixOperator isNotUnknownOperator
public static final SqlPostfixOperator isUnknownOperator
public static final SqlPostfixOperator isASetOperator
public static final SqlPrefixOperator existsOperator
public static final SqlPrefixOperator notOperator
public static final SqlPrefixOperator prefixMinusOperator
-
'.
Its precedence is greater than the infix '+
' and
'-
' operators.
public static final SqlPrefixOperator prefixPlusOperator
+
'.
Its precedence is greater than the infix '+
' and
'-
' operators.
public static final SqlPrefixOperator explicitTableOperator
select * from (TABLE t)
or TABLE
t
. See also collectionTableOperator
.
public static final SqlAggFunction sumOperator
SUM
aggregate function.
public static final SqlAggFunction countOperator
COUNT
aggregate function.
public static final SqlAggFunction minOperator
MIN
aggregate function.
public static final SqlAggFunction maxOperator
MAX
aggregate function.
public static final SqlAggFunction lastValueOperator
LAST_VALUE
aggregate function.
public static final SqlAggFunction firstValueOperator
FIRST_VALUE
aggregate function.
public static final SqlAggFunction singleValueOperator
SINGLE_VALUE
aggregate function.
public static final SqlAggFunction avgOperator
AVG
aggregate function.
public static final SqlAggFunction histogramAggFunction
HISTORAM
aggregate function support. Used by window
aggregate versions of MIN/MAX
public static final SqlFunction histogramMinFunction
HISTOGRAM_MIN
window aggregate function.
public static final SqlFunction histogramMaxFunction
HISTOGRAM_MAX
window aggregate function.
public static final SqlFunction histogramFirstValueFunction
HISTOGRAM_FIRST_VALUE
window aggregate function.
public static final SqlFunction histogramLastValueFunction
HISTOGRAM_LAST_VALUE
window aggregate function.
public static final SqlAggFunction sumEmptyIsZeroOperator
SUM0
aggregate function.
public static final SqlRankFunction cumeDistFunc
CUME_DIST
Window function.
public static final SqlRankFunction denseRankFunc
DENSE_RANK
Window function.
public static final SqlRankFunction percentRankFunc
PERCENT_RANK
Window function.
public static final SqlRankFunction rankFunc
RANK
Window function.
public static final SqlRankFunction rowNumberFunc
ROW_NUMBER
Window function.
public static final SqlRowOperator rowConstructor
public static final SqlOperator minusDateOperator
"(" <datetime> "-" <datetime> ")"
. This operator is special since it needs to hold the
additional interval qualifier specification.
public static final SqlMultisetValueConstructor multisetValueConstructor
MULTISET[1,2,3]
".
public static final SqlMultisetQueryConstructor multisetQueryConstructor
SELECT dname, MULTISET(SELECT
FROM emp WHERE deptno = dept.deptno) FROM dept
".
public static final SqlCursorConstructor cursorConstructor
SELECT * FROM
TABLE(DEDUP(CURSOR(SELECT * FROM EMPS), 'name'))
".
public static final SqlColumnListConstructor columnListConstructor
SELECT * FROM
TABLE(DEDUP(CURSOR(SELECT * FROM EMPS), ROW(name, empno)))
".
public static final SqlSpecialOperator unnestOperator
UNNESToperator.
public static final SqlSpecialOperator lateralOperator
LATERALoperator.
public static final SqlSpecialOperator collectionTableOperator
SELECT * FROM
TABLE(ramp(5))
".
This operator has function syntax (with one argument), whereas explicitTableOperator
is a prefix operator.
public static final SqlOverlapsOperator overlapsOperator
public static final SqlSpecialOperator valuesOperator
public static final SqlLiteralChainOperator literalChainOperator
public static final SqlInternalOperator throwOperator
public static final SqlBetweenOperator betweenOperator
public static final SqlBetweenOperator symmetricBetweenOperator
public static final SqlBetweenOperator notBetweenOperator
public static final SqlBetweenOperator symmetricNotBetweenOperator
public static final SqlSpecialOperator notLikeOperator
public static final SqlSpecialOperator likeOperator
public static final SqlSpecialOperator notSimilarOperator
public static final SqlSpecialOperator similarOperator
public static final SqlSpecialOperator escapeOperator
public static final SqlSelectOperator selectOperator
public static final SqlCaseOperator caseOperator
public static final SqlJoinOperator joinOperator
public static final SqlSpecialOperator insertOperator
public static final SqlSpecialOperator deleteOperator
public static final SqlSpecialOperator updateOperator
public static final SqlSpecialOperator mergeOperator
public static final SqlSpecialOperator explainOperator
public static final SqlOrderByOperator orderByOperator
public static final SqlOperator procedureCallOperator
public static final SqlOperator newOperator
public static final SqlWindowOperator windowOperator
overOperator
public static final SqlBinaryOperator overOperator
OVER
operator, which applies an aggregate functions to a
window
.
Operands are as follows:
SqlCall
)SqlLiteral
) or window in-line
specification (@link SqlWindowOperator})
public static final SqlSpecialOperator reinterpretOperator
REINTERPREToperator is internal to the planner. When the
physical storage of two types is the same, this operator may be used to
reinterpret values of one type as the other. This operator is similar to
a cast, except that it does not alter the data value. Like a regular cast
it accepts one operand and stores the target type as the return type. It
performs an overflow check if it has any second operand, whether
true or not.
public static final SqlFunction substringFunc
SUBSTRING(string FROM start [FOR
length])
.
If the length parameter is a constant, the length of the result is the minimum of the length of the input and that length. Otherwise it is the length of the input.
public static final SqlFunction convertFunc
public static final SqlFunction translateFunc
public static final SqlFunction overlayFunc
public static final SqlFunction trimFunc
public static final SqlFunction positionFunc
public static final SqlFunction charLengthFunc
public static final SqlFunction characterLengthFunc
public static final SqlFunction upperFunc
public static final SqlFunction lowerFunc
public static final SqlFunction initcapFunc
public static final SqlFunction powerFunc
public static final SqlFunction modFunc
public static final SqlFunction lnFunc
public static final SqlFunction log10Func
public static final SqlFunction absFunc
public static final SqlFunction expFunc
public static final SqlFunction nullIfFunc
public static final SqlFunction coalesceFunc
public static final SqlFunction floorFunc
FLOOR
function.
public static final SqlFunction ceilFunc
CEIL
function.
public static final SqlFunction userFunc
USER
function.
public static final SqlFunction currentUserFunc
CURRENT_USER
function.
public static final SqlFunction sessionUserFunc
SESSION_USER
function.
public static final SqlFunction systemUserFunc
SYSTEM_USER
function.
public static final SqlFunction currentPathFunc
CURRENT_PATH
function.
public static final SqlFunction currentRoleFunc
CURRENT_ROLE
function.
public static final SqlFunction currentCatalogFunc
CURRENT_CATALOG
function.
public static final SqlFunction currentSchemaFunc
CURRENT_SCHEMA
function.
public static final SqlFunction localTimeFunc
LOCALTIME [(precision)]
function.
public static final SqlFunction localTimestampFunc
LOCALTIMESTAMP [(precision)]
function.
public static final SqlFunction currentTimeFunc
CURRENT_TIME [(precision)]
function.
public static final SqlFunction currentTimestampFunc
CURRENT_TIMESTAMP [(precision)]
function.
public static final SqlFunction currentDateFunc
CURRENT_DATE
function.
public static final SqlFunction castFunc
CAST
operator.
The SQL syntax is
CAST(expression AS type)
When the CAST operator is applies as a
SqlCall
, it has two arguments: the expression and the type. The type must not include a constraint, soCAST(x AS INTEGER NOT NULL)
, for instance, is invalid.When the CAST operator is applied as a
RexCall
, the target type is simply stored as the return type, not an explicit operand. For example, the expressionCAST(1 + 2 AS DOUBLE)
will become a call toCAST
with the expression1 + 2
as its only operand.The
RexCall
form can also have a type which contains aNOT NULL
constraint. When this expression is implemented, if the value is NULL, an exception will be thrown.
public static final SqlFunction extractFunc
EXTRACT
operator. Extracts a specified field value
from a DATETIME or an INTERVAL. E.g.EXTRACT(HOUR FROM INTERVAL '364 23:59:59')
returns
23
public static final SqlFunction elementFunc
public static final SqlInternalOperator sliceOp
It is introduced when multisets of scalar types are created, in order
to keep types consistent. For example, MULTISET [5]
has type
INTEGER MULTISET
but is translated to an expression of type
RECORD(INTEGER EXPR$0) MULTISET
because in our internal
representation of multisets, every element must be a record. Applying the
"$SLICE" operator to this result converts the type back to an
INTEGER MULTISET
multiset value.
$SLICE
is often translated away when the multiset type is
converted back to scalar values.
public static final SqlInternalOperator elementSlicefunc
ELEMENT(MULTISET [5])
is translated to $ELEMENT_SLICE(MULTISET (VALUES ROW (5
EXPR$0))
It is translated away when the multiset type is converted
back to scalar values.
NOTE: jhyde, 2006/1/9: Usages of this operator are commented out, but
I'm not deleting the operator, because some multiset tests are disabled,
and we may need this operator to get them working!
public static final SqlInternalOperator scalarQueryOperator
public static final SqlFunction cardinalityFunc
public static final SqlFunction collectFunc
public static final SqlFunction fusionFunc
public static final SqlFunction nextValueFunc
NEXT VALUE FOR sequence
public static final SqlSpecialOperator sampleFunction
TABLESAMPLE
operator.
Examples:
<query> TABLESAMPLE SUBSTITUTE('sampleName')
(non-standard)
<query> TABLESAMPLE BERNOULLI(<percent>)
[REPEATABLE(<seed>)]
(standard, but not implemented for FTRS
yet)
<query> TABLESAMPLE SYSTEM(<percent>)
[REPEATABLE(<seed>)]
(standard, but not implemented for FTRS
yet)
Operand #0 is a query or table; Operand #1 is a SqlSampleSpec
wrapped in a SqlLiteral
.
Constructor Detail |
---|
public SqlStdOperatorTable()
Method Detail |
---|
public static SqlStdOperatorTable instance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |