public class NamedDruidSchema extends Object implements NamedSchema
| Constructor and Description |
|---|
NamedDruidSchema(DruidSchema druidSchema,
String druidSchemaName) |
| 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. |
@Inject public NamedDruidSchema(DruidSchema druidSchema, String druidSchemaName)
public String getSchemaName()
getSchemaName in interface NamedSchemapublic 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 NamedSchemapublic org.apache.calcite.schema.Schema getSchema()
getSchema in interface NamedSchemaCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.