@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
|
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() |
TableName |
getTableName()
Table name for state
|
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() |
boolean |
isDisabledOrDisabling() |
boolean |
isEnabled() |
boolean |
isEnabledOrEnabling() |
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 isEnabledOrEnabling()
TableState.State.ENABLED or TableState.State.ENABLINGpublic boolean isDisabled()
public boolean isDisabledOrDisabling()
TableState.State.DISABLED or TableState.State.DISABLEDpublic 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 frompublic static TableState parseFrom(TableName tableName, byte[] bytes) throws DeserializationException
DeserializationExceptionpublic boolean isInStates(TableState.State... target)
target - equals to any ofCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.