Package io.deephaven.enterprise.schema
Interface Schema
- All Known Subinterfaces:
SchemaInternal
- All Known Implementing Classes:
DeephavenSchema,InvalidSchema,Schema.AbstractSchema,Schema.Delegating
public interface Schema
This defines a minimal interface with commonly accessed scheme-related methods
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classImplement behaviors common to all implementations.static classDelegate all method calls to an implementation object. -
Method Summary
Modifier and TypeMethodDescriptionGet an unmodifiable map of column names to column descriptions.Return the input table specification from this schema.@NotNull StringGets the namespace of the table@NotNull NamespaceSetGets theNamespaceSetto which this schema belongs@NotNull TableDefinitionGets theTableDefinitioncorresponding to this Schema@NotNull StringGets the table description from the schema.@NotNull StringGets the name of the table@NotNull SchemaVersionGets the version information of this schemastatic Schemaof(io.deephaven.shadow.enterprise.com.illumon.iris.db.schema.Schema legacySchema) Construct aSchemainstance which delegates to a legacy instance
-
Method Details
-
of
static Schema of(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.schema.Schema legacySchema) Construct aSchemainstance which delegates to a legacy instance- Parameters:
legacySchema- a Legacy Schema instance to which we will delegate most work- Returns:
- a new
Schemainstance
-
getNamespace
Gets the namespace of the table- Returns:
- The namespace of the table
-
getTableName
Gets the name of the table- Returns:
- The name of the table
-
getNamespaceSet
Gets theNamespaceSetto which this schema belongs- Returns:
- The
NamespaceSetto which this schema belongs
-
getTableDefinition
Gets theTableDefinitioncorresponding to this Schema- Returns:
- The
TableDefinitioncorresponding to this Schema
-
getVersion
Gets the version information of this schema- Returns:
- The version of this schema
-
getColumnDescriptions
Get an unmodifiable map of column names to column descriptions. Columns which do not have a description defined may not be represented in the map.- Returns:
- A map of column names to column descriptions
-
getTableDescription
Gets the table description from the schema.- Returns:
- The table description from the schema.
-
getInputTableStateSpec
Optional<InputTableStateSpec> getInputTableStateSpec()Return the input table specification from this schema.- Returns:
- The input table specification if present, or null.
-