@InterfaceAudience.Private public class TableState extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
TableState.State |
构造器和说明 |
---|
TableState(TableName tableName,
TableState.State state)
Create instance of TableState.
|
限定符和类型 | 方法和说明 |
---|---|
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 |
isDisabling() |
boolean |
isEnabled() |
boolean |
isEnabledOrEnabling() |
boolean |
isEnabling() |
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 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 frompublic static TableState parseFrom(TableName tableName, byte[] bytes) throws DeserializationException
public boolean isInStates(TableState.State... target)
target
- equals to any ofCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.