All Superinterfaces:
Metadata

public interface Schema extends Metadata
Metadata for a Relational Schema.
  • Method Details

    • getSchemaTemplate

      @Nonnull SchemaTemplate getSchemaTemplate()
      returns the SchemaTemplate from which this Schema is generated.
      Returns:
      The SchemaTemplate from which this Schema is generated.
    • getDatabaseName

      @Nonnull String getDatabaseName()
      Returns the ID of the database which this Schema belong to.
      Returns:
      The ID of the database which this Schema belong to.
    • getTables

      @Nonnull default Set<? extends Table> getTables() throws RelationalException
      Returns the tables inside the Schema.
      Returns:
      The tables inside the Schema.
      Throws:
      RelationalException - if the schema template is NoOpSchemaTemplate
    • getIndexes

      @Nonnull default com.google.common.collect.Multimap<String,String> getIndexes() throws RelationalException
      Returns a list of all table-scoped Indexes in the schema template.
      Returns:
      a multi-map whose key is the Table name, and value(s) is the Index.
      Throws:
      RelationalException - if something goes wrong.
    • accept

      default void accept(@Nonnull Visitor visitor)
      Specified by:
      accept in interface Metadata