org.eigenbase.test
Class SqlValidatorFeatureTest.FeatureValidator

java.lang.Object
  extended by org.eigenbase.sql.validate.SqlValidatorImpl
      extended by org.eigenbase.test.SqlValidatorFeatureTest.FeatureValidator
All Implemented Interfaces:
SqlValidator, SqlValidatorWithHints
Enclosing class:
SqlValidatorFeatureTest

private class SqlValidatorFeatureTest.FeatureValidator
extends SqlValidatorImpl


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eigenbase.sql.validate.SqlValidatorImpl
SqlValidatorImpl.DmlNamespace, SqlValidatorImpl.FunctionParamInfo, SqlValidatorImpl.IdInfo, SqlValidatorImpl.Status
 
Nested classes/interfaces inherited from interface org.eigenbase.sql.validate.SqlValidator
SqlValidator.Compatible
 
Field Summary
 
Fields inherited from class org.eigenbase.sql.validate.SqlValidatorImpl
expandColumnReferences, expandIdentifiers, functionCallStack, idPositions, namespaces, scopes, tracer, typeFactory, unknownType, UPDATE_ANON_PREFIX, UPDATE_SRC_ALIAS, UPDATE_TGT_ALIAS
 
Constructor Summary
protected SqlValidatorFeatureTest.FeatureValidator(SqlOperatorTable opTab, SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory, SqlConformance conformance)
           
 
Method Summary
protected  void validateFeature(org.eigenbase.resgen.ResourceDefinition feature, SqlParserPos context)
          Validates that a particular feature is enabled.
 
Methods inherited from class org.eigenbase.sql.validate.SqlValidatorImpl
addToSelectList, checkTypeAssignment, createSelectNamespace, createSetopNamespace, createSourceSelectForDelete, createSourceSelectForUpdate, createTargetRowType, declareCursor, deriveAlias, deriveConstructorType, deriveType, expand, expandOrderExpr, expandStar, getCatalogReader, getConformance, getCursorScope, getFromScope, getGroupScope, getHavingScope, getJoinScope, getLogicalSourceRowType, getLogicalTargetRowType, getNamespace, getOperatorTable, getOrderScope, getOriginal, getOverScope, getParentCursor, getRawSelectScope, getScope, getSelectScope, getSelfJoinExprForUpdate, getTypeFactory, getUnknownType, getValidatedNodeType, getValidatedNodeTypeIfKnown, getWhereScope, getWindowByName, handleUnresolvedFunction, inferUnknownTypes, isAggregate, isAggregate, isSystemField, lookupHints, lookupNameCompletionHints, lookupQualifiedName, newValidationError, performUnconditionalRewrites, popFunctionCall, pushFunctionCall, registerNamespace, removeValidatedNodeType, resolveWindow, setCallRewrite, setColumnReferenceExpansion, setIdentifierExpansion, setOriginal, setValidatedNodeType, shouldAllowIntermediateOrderBy, shouldAllowOverRelation, shouldExpandIdentifiers, validate, validateAggregateParams, validateCall, validateColumnListParams, validateDataType, validateDelete, validateDynamicParam, validateFrom, validateGroupClause, validateHavingClause, validateIdentifier, validateInsert, validateIntervalQualifier, validateJoin, validateLiteral, validateMerge, validateNamespace, validateOrderList, validateOver, validateParameterizedExpression, validateQuery, validateSelect, validateSelectList, validateUpdate, validateValues, validateWhereClause, validateWhereOrOn, validateWindow, validateWindowClause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlValidatorFeatureTest.FeatureValidator

protected SqlValidatorFeatureTest.FeatureValidator(SqlOperatorTable opTab,
                                                   SqlValidatorCatalogReader catalogReader,
                                                   RelDataTypeFactory typeFactory,
                                                   SqlConformance conformance)
Method Detail

validateFeature

protected void validateFeature(org.eigenbase.resgen.ResourceDefinition feature,
                               SqlParserPos context)
Description copied from class: SqlValidatorImpl
Validates that a particular feature is enabled. By default, all features are enabled; subclasses may override this method to be more discriminating.

Overrides:
validateFeature in class SqlValidatorImpl
Parameters:
feature - feature being used, represented as a resource definition from EigenbaseResource
context - parser position context for error reporting, or null if none available