Interface Schema

  • All Superinterfaces:
    Metadata

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

      • getDatabaseName

        @Nonnull
        java.lang.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 java.util.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<java.lang.String,​java.lang.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