Package org.apache.calcite.sql.validate
Class SqlValidatorImpl.DmlNamespace
- java.lang.Object
-
- org.apache.calcite.sql.validate.IdentifierNamespace
-
- org.apache.calcite.sql.validate.SqlValidatorImpl.DmlNamespace
-
- All Implemented Interfaces:
org.apache.calcite.sql.validate.SqlValidatorNamespace
- Enclosing class:
- SqlValidatorImpl
public static class SqlValidatorImpl.DmlNamespace extends org.apache.calcite.sql.validate.IdentifierNamespace
Common base class for DML statement namespaces.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.calcite.sql.SqlNode
enclosingNode
protected org.apache.calcite.rel.type.RelDataType
rowType
protected org.apache.calcite.rel.type.RelDataType
type
protected SqlValidatorImpl
validator
-
Constructor Summary
Constructors Modifier Constructor Description protected
DmlNamespace(SqlValidatorImpl validator, org.apache.calcite.sql.SqlNode id, org.apache.calcite.sql.SqlNode enclosingNode, org.apache.calcite.sql.validate.SqlValidatorScope parentScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.calcite.rel.type.RelDataType
convertToStruct(org.apache.calcite.rel.type.RelDataType arg0)
boolean
fieldExists(String arg0)
org.apache.calcite.sql.SqlNode
getEnclosingNode()
org.apache.calcite.rel.type.RelDataType
getRowType()
org.apache.calcite.rel.type.RelDataType
getRowTypeSansSystemColumns()
org.apache.calcite.rel.type.RelDataType
getType()
org.apache.calcite.sql.validate.SqlValidator
getValidator()
boolean
isWrapperFor(Class<?> arg0)
org.apache.calcite.sql.validate.SqlValidatorNamespace
lookupChild(String arg0)
void
makeNullable()
void
setType(org.apache.calcite.rel.type.RelDataType arg0)
protected org.apache.calcite.rel.type.RelDataType
toStruct(org.apache.calcite.rel.type.RelDataType arg0, org.apache.calcite.sql.SqlNode arg1)
String
translate(String arg0)
<T extends Object>
Tunwrap(Class<T> arg0)
void
validate(org.apache.calcite.rel.type.RelDataType arg0)
-
-
-
Field Detail
-
validator
protected final SqlValidatorImpl validator
-
rowType
protected org.apache.calcite.rel.type.RelDataType rowType
-
type
protected org.apache.calcite.rel.type.RelDataType type
-
enclosingNode
protected final org.apache.calcite.sql.SqlNode enclosingNode
-
-
Constructor Detail
-
DmlNamespace
protected DmlNamespace(SqlValidatorImpl validator, org.apache.calcite.sql.SqlNode id, org.apache.calcite.sql.SqlNode enclosingNode, org.apache.calcite.sql.validate.SqlValidatorScope parentScope)
-
-
Method Detail
-
getValidator
public org.apache.calcite.sql.validate.SqlValidator getValidator()
- Specified by:
getValidator
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
validate
public final void validate(org.apache.calcite.rel.type.RelDataType arg0)
- Specified by:
validate
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType()
- Specified by:
getRowType
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
getRowTypeSansSystemColumns
public org.apache.calcite.rel.type.RelDataType getRowTypeSansSystemColumns()
- Specified by:
getRowTypeSansSystemColumns
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
getType
public org.apache.calcite.rel.type.RelDataType getType()
- Specified by:
getType
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
setType
public void setType(org.apache.calcite.rel.type.RelDataType arg0)
- Specified by:
setType
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
getEnclosingNode
public org.apache.calcite.sql.SqlNode getEnclosingNode()
- Specified by:
getEnclosingNode
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
lookupChild
public org.apache.calcite.sql.validate.SqlValidatorNamespace lookupChild(String arg0)
- Specified by:
lookupChild
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
fieldExists
public boolean fieldExists(String arg0)
- Specified by:
fieldExists
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
makeNullable
public void makeNullable()
- Specified by:
makeNullable
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
unwrap
public <T extends Object> T unwrap(Class<T> arg0)
- Specified by:
unwrap
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
isWrapperFor
public boolean isWrapperFor(Class<?> arg0)
- Specified by:
isWrapperFor
in interfaceorg.apache.calcite.sql.validate.SqlValidatorNamespace
-
convertToStruct
protected org.apache.calcite.rel.type.RelDataType convertToStruct(org.apache.calcite.rel.type.RelDataType arg0)
-
toStruct
protected org.apache.calcite.rel.type.RelDataType toStruct(org.apache.calcite.rel.type.RelDataType arg0, org.apache.calcite.sql.SqlNode arg1)
-
-