Package org.apache.druid.catalog.model
Enum Class TableMetadata.TableState
- All Implemented Interfaces:
Serializable,Comparable<TableMetadata.TableState>,Constable
- Enclosing class:
- TableMetadata
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptioncode()static TableMetadata.TableStatestatic TableMetadata.TableStateReturns the enum constant of this class with the specified name.static TableMetadata.TableState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
-
DELETING
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
code
-
fromCode
-