@InterfaceAudience.Private public class TableState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TableState.State |
Modifier and Type | Field and Description |
---|---|
private TableState.State |
state |
private TableName |
tableName |
Constructor and Description |
---|
TableState(TableName tableName,
TableState.State state)
Create instance of TableState.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState |
convert()
Covert to PB version of TableState n
|
static TableState |
convert(TableName tableName,
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState tableState)
Covert from PB version of TableState
|
boolean |
equals(Object o) |
TableState.State |
getState()
Returns table state
|
TableName |
getTableName()
Table name for state n
|
int |
hashCode() |
boolean |
inStates(TableState.State... states)
Check that table in given states
|
boolean |
inStates(TableState.State state)
Check that table in given states
|
boolean |
isDisabled()
Returns True if table is disabled.
|
boolean |
isDisabledOrDisabling()
Returns True if
TableState.State.DISABLED or TableState.State.DISABLED |
boolean |
isDisabling()
Returns True if table is disabling.
|
boolean |
isEnabled()
Returns True if table is
TableState.State.ENABLED . |
boolean |
isEnabledOrEnabling()
Returns True if
TableState.State.ENABLED or TableState.State.ENABLING |
boolean |
isEnabling()
Returns True if table is
TableState.State.ENABLING . |
boolean |
isInStates(TableState.State... target)
Static version of state checker
|
static TableState |
parseFrom(TableName tableName,
byte[] bytes) |
String |
toString() |
private final TableState.State state
public TableState(TableName tableName, TableState.State state)
tableName
- name of the tablestate
- table statepublic boolean isEnabled()
TableState.State.ENABLED
.public boolean isEnabling()
TableState.State.ENABLING
.public boolean isEnabledOrEnabling()
TableState.State.ENABLED
or TableState.State.ENABLING
public boolean isDisabled()
public boolean isDisabling()
public boolean isDisabledOrDisabling()
TableState.State.DISABLED
or TableState.State.DISABLED
public TableState.State getState()
public TableName getTableName()
public boolean inStates(TableState.State state)
state
- statepublic boolean inStates(TableState.State... states)
states
- state listpublic org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState convert()
public static TableState convert(TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState tableState)
tableName
- table this state oftableState
- convert from npublic static TableState parseFrom(TableName tableName, byte[] bytes) throws DeserializationException
DeserializationException
public boolean isInStates(TableState.State... target)
target
- equals to any ofCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.