public class NamedSystemSchema extends Object implements NamedSchema
| Constructor and Description |
|---|
NamedSystemSchema(PlannerConfig plannerConfig,
SystemSchema systemSchema) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.schema.Schema |
getSchema() |
String |
getSchemaName() |
String |
getSchemaResourceType(String resourceName)
For a given name of a table, function, etc of this schema, return the value most appropriate to use for
Resource.getType() for the resource, used during authorization. |
public static final String NAME
@Inject public NamedSystemSchema(PlannerConfig plannerConfig, SystemSchema systemSchema)
public String getSchemaName()
getSchemaName in interface NamedSchemapublic org.apache.calcite.schema.Schema getSchema()
getSchema in interface NamedSchema@Nullable public String getSchemaResourceType(String resourceName)
NamedSchemaResource.getType() for the resource, used during authorization. If this
method returns null then the resource does not need any authorization.getSchemaResourceType in interface NamedSchemaCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.