public class SqlResourceCollectorShuttle
extends org.apache.calcite.sql.util.SqlShuttle
SqlNode to collect a set of Resource for ResourceType.DATASOURCE and
ResourceType.VIEW to use for authorization during query planning.
It works by looking for SqlIdentifier which corespond to a IdentifierNamespace, where
SqlValidatorNamespace is calcite-speak for sources of data and IdentifierNamespace specifically are
namespaces which are identified by a single variable, e.g. table names.| Constructor and Description |
|---|
SqlResourceCollectorShuttle(org.apache.calcite.sql.validate.SqlValidator validator,
PlannerContext plannerContext) |
| Modifier and Type | Method and Description |
|---|---|
Set<ResourceAction> |
getResourceActions() |
org.apache.calcite.sql.SqlNode |
visit(org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.sql.SqlNode |
visit(org.apache.calcite.sql.SqlIdentifier id) |
public SqlResourceCollectorShuttle(org.apache.calcite.sql.validate.SqlValidator validator,
PlannerContext plannerContext)
public org.apache.calcite.sql.SqlNode visit(org.apache.calcite.sql.SqlCall call)
visit in interface org.apache.calcite.sql.util.SqlVisitor<org.apache.calcite.sql.SqlNode>visit in class org.apache.calcite.sql.util.SqlShuttlepublic org.apache.calcite.sql.SqlNode visit(org.apache.calcite.sql.SqlIdentifier id)
visit in interface org.apache.calcite.sql.util.SqlVisitor<org.apache.calcite.sql.SqlNode>visit in class org.apache.calcite.sql.util.SqlShuttlepublic Set<ResourceAction> getResourceActions()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.