Class NamedViewSchema

java.lang.Object
org.apache.druid.sql.calcite.schema.NamedViewSchema
All Implemented Interfaces:
NamedSchema

public class NamedViewSchema extends Object implements NamedSchema
  • Field Details

  • Constructor Details

    • NamedViewSchema

      @Inject public NamedViewSchema(ViewSchema viewSchema)
  • Method Details

    • getSchemaName

      public String getSchemaName()
      Specified by:
      getSchemaName in interface NamedSchema
      Returns:
      The name that this schema should be registered to.
    • getSchemaResourceType

      public String getSchemaResourceType(String resourceName)
      Description copied from interface: NamedSchema
      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. If this method returns null then the resource does not need any authorization.
      Specified by:
      getSchemaResourceType in interface NamedSchema
    • getSchema

      public org.apache.calcite.schema.Schema getSchema()
      Specified by:
      getSchema in interface NamedSchema
      Returns:
      The Schema that Calcite should use.