public class NamedViewSchema extends Object implements NamedSchema
| Constructor and Description |
|---|
NamedViewSchema(ViewSchema viewSchema) |
| 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 NamedViewSchema(ViewSchema viewSchema)
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.