Interface Schema
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(Visitor visitor)
java.lang.String
getDatabaseName()
Returns the ID of the database whichthis
Schema
belong to.default com.google.common.collect.Multimap<java.lang.String,java.lang.String>
getIndexes()
Returns a list of all table-scopedIndex
es in the schema template.SchemaTemplate
getSchemaTemplate()
default java.util.Set<? extends Table>
getTables()
Returns the tables inside theSchema
.
-
-
-
Method Detail
-
getSchemaTemplate
@Nonnull SchemaTemplate getSchemaTemplate()
- Returns:
- The
SchemaTemplate
from whichthis
Schema
is generated.
-
getDatabaseName
@Nonnull java.lang.String getDatabaseName()
Returns the ID of the database whichthis
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 theSchema
.- 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-scopedIndex
es in the schema template.- Returns:
- a multi-map whose key is the
Table
name, and value(s) is theIndex
. - Throws:
RelationalException
- if something goes wrong.
-
-