@InterfaceAudience.Private public class TableState extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TableState.State |
| 构造器和说明 |
|---|
TableState(TableName tableName,
TableState.State state)
Create instance of TableState.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HBaseProtos.TableState |
convert()
Covert to PB version of TableState
|
static TableState |
convert(TableName tableName,
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() |
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 HBaseProtos.TableState convert()
public static TableState convert(TableName tableName, HBaseProtos.TableState tableState)
tableName - table this state oftableState - convert frompublic static TableState parseFrom(TableName tableName, byte[] bytes) throws DeserializationException
public boolean isInStates(TableState.State... target)
target - equals to any ofCopyright © 2007–2019. All rights reserved.