Package org.apache.druid.catalog.model
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcode()static TableMetadata.TableStatefromCode(String code)static TableMetadata.TableStatevalueOf(String name)Returns the enum constant of this type with the specified name.static TableMetadata.TableState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final TableMetadata.TableState ACTIVE
-
DELETING
public static final TableMetadata.TableState DELETING
-
-
Method Detail
-
values
public static TableMetadata.TableState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TableMetadata.TableState c : TableMetadata.TableState.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
code
public String code()
-
fromCode
public static TableMetadata.TableState fromCode(String code)
-
-