Interface NamedSchema
- All Known Implementing Classes:
NamedDruidSchema,NamedLookupSchema,NamedSystemSchema,NamedViewSchema
public interface NamedSchema
This interface provides everything that is needed to register a
Schema as a sub schema to the root schema
of Druid SQL. The getSchemaName() will be used to access the provided Schema via SQL.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.schema.Schemadefault StringgetSchemaResourceType(String resourceName) For a given name of a table, function, etc of this schema, return the value most appropriate to use forResource.getType()for the resource, used during authorization.
-
Method Details
-
getSchemaName
String getSchemaName()- Returns:
- The name that this schema should be registered to.
-
getSchemaResourceType
For a given name of a table, function, etc of this schema, return the value most appropriate to use forResource.getType()for the resource, used during authorization. If this method returns null then the resource does not need any authorization. -
getSchema
org.apache.calcite.schema.Schema getSchema()- Returns:
- The Schema that Calcite should use.
-