Class InvalidSchema

java.lang.Object
io.deephaven.enterprise.schema.impl.InvalidSchema
All Implemented Interfaces:
Schema

public final class InvalidSchema extends Object implements Schema
Placeholder schema for tables that delegate to nonexistent/invalid sources.
  • Method Details

    • of

      public static Schema of(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, @NotNull @NotNull String message)
      Construct an InvalidSchema instance which does not implement any Schema functionality
      Parameters:
      namespace - the Namespace of the InvalidSchema
      tableName - the TableName of the InvalidSchema
      message - the message to use when throwing from unimplemented methods
      Returns:
      a new InvalidSchema instance
    • getNamespace

      @NotNull public @NotNull String getNamespace()
      Description copied from interface: Schema
      Gets the namespace of the table
      Specified by:
      getNamespace in interface Schema
      Returns:
      The namespace of the table
    • getTableName

      @NotNull public @NotNull String getTableName()
      Description copied from interface: Schema
      Gets the name of the table
      Specified by:
      getTableName in interface Schema
      Returns:
      The name of the table
    • getNamespaceSet

      @NotNull public @NotNull NamespaceSet getNamespaceSet()
      Description copied from interface: Schema
      Gets the NamespaceSet to which this schema belongs
      Specified by:
      getNamespaceSet in interface Schema
      Returns:
      The NamespaceSet to which this schema belongs
    • getTableDefinition

      @NotNull public TableDefinition getTableDefinition()
      Description copied from interface: Schema
      Gets the TableDefinition corresponding to this Schema
      Specified by:
      getTableDefinition in interface Schema
      Returns:
      The TableDefinition corresponding to this Schema
    • getVersion

      @NotNull public @NotNull SchemaVersion getVersion()
      Description copied from interface: Schema
      Gets the version information of this schema
      Specified by:
      getVersion in interface Schema
      Returns:
      The version of this schema
    • getColumnDescriptions

      @NotNull public @NotNull Map<String,String> getColumnDescriptions()
      Description copied from interface: Schema
      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.
      Specified by:
      getColumnDescriptions in interface Schema
      Returns:
      A map of column names to column descriptions
    • getTableDescription

      @NotNull public @NotNull String getTableDescription()
      Description copied from interface: Schema
      Gets the table description from the schema.
      Specified by:
      getTableDescription in interface Schema
      Returns:
      The table description from the schema.
    • getInputTableStateSpec

      public Optional<InputTableStateSpec> getInputTableStateSpec()
      Description copied from interface: Schema
      Return the input table specification from this schema.
      Specified by:
      getInputTableStateSpec in interface Schema
      Returns:
      The input table specification if present, or null.
    • toString

      public String toString()
      Overrides:
      toString in class Object