com.lucidera.farrago
Class LucidDbOperatorTable

java.lang.Object
  extended by org.eigenbase.sql.util.ReflectiveSqlOperatorTable
      extended by org.eigenbase.sql.fun.SqlStdOperatorTable
          extended by com.lucidera.farrago.LucidDbOperatorTable
All Implemented Interfaces:
SqlOperatorTable

public class LucidDbOperatorTable
extends SqlStdOperatorTable

LucidDbOperatorTable extends SqlStdOperatorTable with the builtin operators specific to the LucidDb personality

Version:
$Id: //open/dev/farrago/src/com/lucidera/farrago/LucidDbOperatorTable.java#6 $
Author:
Zelaine Fong

Field Summary
private static LucidDbOperatorTable instance
           
static SqlFunction lcsRidFunc
           
private static LucidDbSpecialOperators specialOperators
           
 
Fields inherited from class org.eigenbase.sql.fun.SqlStdOperatorTable
absFunc, andOperator, asOperator, avgOperator, betweenOperator, cardinalityFunc, caseOperator, castFunc, ceilFunc, characterLengthFunc, charLengthFunc, coalesceFunc, collectFunc, collectionTableOperator, columnListConstructor, concatOperator, convertFunc, countOperator, cumeDistFunc, currentCatalogFunc, currentDateFunc, currentPathFunc, currentRoleFunc, currentSchemaFunc, currentTimeFunc, currentTimestampFunc, currentUserFunc, cursorConstructor, deleteOperator, denseRankFunc, descendingOperator, divideIntegerOperator, divideOperator, dotOperator, elementFunc, elementSlicefunc, equalsOperator, escapeOperator, exceptAllOperator, exceptOperator, existsOperator, expFunc, explainOperator, explicitTableOperator, extractFunc, firstValueOperator, floorFunc, fusionFunc, greaterThanOperator, greaterThanOrEqualOperator, histogramAggFunction, histogramFirstValueFunction, histogramLastValueFunction, histogramMaxFunction, histogramMinFunction, initcapFunc, inOperator, insertOperator, intersectAllOperator, intersectOperator, isASetOperator, isDifferentFromOperator, isDistinctFromOperator, isFalseOperator, isNotDistinctFromOperator, isNotFalseOperator, isNotNullOperator, isNotTrueOperator, isNotUnknownOperator, isNullOperator, isTrueOperator, isUnknownOperator, joinOperator, lastValueOperator, lateralOperator, lessThanOperator, lessThanOrEqualOperator, likeOperator, literalChainOperator, lnFunc, localTimeFunc, localTimestampFunc, log10Func, lowerFunc, maxOperator, memberOfOperator, mergeOperator, minOperator, minusDateOperator, minusOperator, modFunc, multiplyOperator, multisetExceptAllOperator, multisetExceptOperator, multisetIntersectAllOperator, multisetIntersectOperator, multisetQueryConstructor, multisetUnionAllOperator, multisetUnionOperator, multisetValueConstructor, newOperator, nextValueFunc, notBetweenOperator, notEqualsOperator, notInOperator, notLikeOperator, notOperator, notSimilarOperator, nullIfFunc, orderByOperator, orOperator, overlapsOperator, overlayFunc, overOperator, percentRankFunc, plusOperator, positionFunc, powerFunc, prefixMinusOperator, prefixPlusOperator, procedureCallOperator, rankFunc, reinterpretOperator, rowConstructor, rowNumberFunc, sampleFunction, scalarQueryOperator, selectOperator, sessionUserFunc, similarOperator, singleValueOperator, sliceOp, submultisetOfOperator, substringFunc, sumEmptyIsZeroOperator, sumOperator, symmetricBetweenOperator, symmetricNotBetweenOperator, systemUserFunc, throwOperator, translateFunc, trimFunc, unionAllOperator, unionOperator, unnestOperator, updateOperator, upperFunc, userFunc, valuesOperator, windowOperator
 
Constructor Summary
LucidDbOperatorTable()
           
 
Method Summary
 Integer getSpecialOpColumnId(SqlOperator op)
           
 Set<SqlOperator> getSpecialOperators()
           
 String getSpecialOpName(int colId)
           
 String getSpecialOpName(SqlOperator op)
           
 SqlTypeName getSpecialOpRetTypeName(int colId)
           
static SqlStdOperatorTable instance()
          Returns the singleton instance, creating it if necessary.
 boolean isNullable(int colId)
           
 boolean isSpecialColumnId(int colId)
           
 boolean isSpecialOperator(SqlOperator op)
           
static LucidDbOperatorTable ldbInstance()
          Retrieves the singleton, 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

instance

private static LucidDbOperatorTable instance

specialOperators

private static LucidDbSpecialOperators specialOperators

lcsRidFunc

public static final SqlFunction lcsRidFunc
Constructor Detail

LucidDbOperatorTable

public LucidDbOperatorTable()
Method Detail

ldbInstance

public static LucidDbOperatorTable ldbInstance()
Retrieves the singleton, creating it if necessary.

Returns:
singleton with LucidDB-specific type

instance

public static SqlStdOperatorTable instance()
Returns the singleton instance, creating it if necessary.

Returns:
singleton with generic type

getSpecialOperators

public Set<SqlOperator> getSpecialOperators()

isSpecialOperator

public boolean isSpecialOperator(SqlOperator op)

isSpecialColumnId

public boolean isSpecialColumnId(int colId)

getSpecialOpName

public String getSpecialOpName(SqlOperator op)

getSpecialOpName

public String getSpecialOpName(int colId)

getSpecialOpRetTypeName

public SqlTypeName getSpecialOpRetTypeName(int colId)

isNullable

public boolean isNullable(int colId)

getSpecialOpColumnId

public Integer getSpecialOpColumnId(SqlOperator op)