@Internal public final class ProcedureNamespace extends Object
Note: Compared to Calcite, this class implements custom logic for dealing with collection
tables like TABLE(function(...))
procedures. Compared to the SQL standard, Flink's table
functions can return arbitrary types that are wrapped into a ROW type if necessary. We don't
interpret ARRAY or MULTISET types as it would be standard.
Modifier and Type | Field and 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 |
Modifier and Type | Method and 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() |
List<org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNode,org.apache.calcite.sql.validate.SqlMonotonicity>> |
getMonotonicExprs() |
org.apache.calcite.sql.validate.SqlMonotonicity |
getMonotonicity(String arg0) |
org.apache.calcite.sql.SqlNode |
getNode() |
org.apache.calcite.rel.type.RelDataType |
getRowType() |
org.apache.calcite.rel.type.RelDataType |
getRowTypeSansSystemColumns() |
org.apache.calcite.sql.validate.SqlValidatorTable |
getTable() |
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() |
org.apache.calcite.sql.validate.SqlValidatorNamespace |
resolve() |
void |
setType(org.apache.calcite.rel.type.RelDataType arg0) |
boolean |
supportsModality(org.apache.calcite.sql.validate.SqlModality arg0) |
protected org.apache.calcite.rel.type.RelDataType |
toStruct(org.apache.calcite.rel.type.RelDataType type,
org.apache.calcite.sql.SqlNode unnest)
Converts a type to a struct if it is not already.
|
String |
translate(String arg0) |
<T> T |
unwrap(Class<T> arg0) |
void |
validate(org.apache.calcite.rel.type.RelDataType arg0) |
org.apache.calcite.rel.type.RelDataType |
validateImpl(org.apache.calcite.rel.type.RelDataType targetRowType) |
protected final SqlValidatorImpl validator
protected org.apache.calcite.rel.type.RelDataType rowType
protected org.apache.calcite.rel.type.RelDataType type
protected final org.apache.calcite.sql.SqlNode enclosingNode
public org.apache.calcite.rel.type.RelDataType validateImpl(org.apache.calcite.rel.type.RelDataType targetRowType)
protected org.apache.calcite.rel.type.RelDataType toStruct(org.apache.calcite.rel.type.RelDataType type, org.apache.calcite.sql.SqlNode unnest)
public org.apache.calcite.sql.SqlNode getNode()
public org.apache.calcite.sql.validate.SqlValidator getValidator()
getValidator
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public final void validate(org.apache.calcite.rel.type.RelDataType arg0)
validate
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.rel.type.RelDataType getRowType()
getRowType
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.rel.type.RelDataType getRowTypeSansSystemColumns()
getRowTypeSansSystemColumns
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.rel.type.RelDataType getType()
getType
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public void setType(org.apache.calcite.rel.type.RelDataType arg0)
setType
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.sql.SqlNode getEnclosingNode()
getEnclosingNode
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.sql.validate.SqlValidatorTable getTable()
getTable
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.sql.validate.SqlValidatorNamespace lookupChild(String arg0)
lookupChild
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public boolean fieldExists(String arg0)
fieldExists
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public List<org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNode,org.apache.calcite.sql.validate.SqlMonotonicity>> getMonotonicExprs()
getMonotonicExprs
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.sql.validate.SqlMonotonicity getMonotonicity(String arg0)
getMonotonicity
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public void makeNullable()
makeNullable
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public org.apache.calcite.sql.validate.SqlValidatorNamespace resolve()
resolve
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public boolean supportsModality(org.apache.calcite.sql.validate.SqlModality arg0)
supportsModality
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public <T> T unwrap(Class<T> arg0)
unwrap
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
public boolean isWrapperFor(Class<?> arg0)
isWrapperFor
in interface org.apache.calcite.sql.validate.SqlValidatorNamespace
protected org.apache.calcite.rel.type.RelDataType convertToStruct(org.apache.calcite.rel.type.RelDataType arg0)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.