Enum TableMetadata.TableState

java.lang.Object
java.lang.Enum<TableMetadata.TableState>
org.apache.druid.catalog.model.TableMetadata.TableState
All Implemented Interfaces:
Serializable, Comparable<TableMetadata.TableState>
Enclosing class:
TableMetadata

public static enum TableMetadata.TableState extends Enum<TableMetadata.TableState>
State of the metadata table entry (not necessarily of the underlying datasource.) A table entry will be Active normally. The Deleting state is provided to handle one very specific case: a request to delete a datasource. Since datasources are large, and consist of a large number of segments, it takes time to unload segments from data nodes, then physically delete those segments. The Deleting state says that this process has started. It tell the Broker to act as if the table no longer exists in queries, but not to allow creation of a new table of the same name until the deletion process completes and the table metadata entry is deleted.
  • Enum Constant Details

  • Method Details

    • values

      public static TableMetadata.TableState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TableMetadata.TableState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • code

      public String code()
    • fromCode

      public static TableMetadata.TableState fromCode(String code)