@InterfaceAudience.Private public class TableState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TableState.State |
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
|
static boolean |
isInStates(TableState.State state,
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 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
DeserializationException
public static boolean isInStates(TableState.State state, TableState.State... target)
state
- desiredtarget
- equals to any ofCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.