Package org.apache.hadoop.hbase.client
Class TableState
java.lang.Object
org.apache.hadoop.hbase.client.TableState
Represents table state.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTableState
(TableName tableName, TableState.State state) Create instance of TableState. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState
convert()
Covert to PB version of TableStatestatic TableState
convert
(TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState tableState) Covert from PB version of TableStateboolean
getState()
Returns table stateTable name for stateint
hashCode()
boolean
inStates
(TableState.State state) Check that table in given statesboolean
inStates
(TableState.State... states) Check that table in given statesboolean
Returns True if table is disabled.boolean
Returns True ifTableState.State.DISABLED
orTableState.State.DISABLED
boolean
Returns True if table is disabling.boolean
Returns True if table isTableState.State.ENABLED
.boolean
Returns True ifTableState.State.ENABLED
orTableState.State.ENABLING
boolean
Returns True if table isTableState.State.ENABLING
.boolean
isInStates
(TableState.State... target) Static version of state checkerstatic TableState
toString()
-
Field Details
-
tableName
-
state
-
-
Constructor Details
-
TableState
Create instance of TableState.- Parameters:
tableName
- name of the tablestate
- table state
-
-
Method Details
-
isEnabled
Returns True if table isTableState.State.ENABLED
. -
isEnabling
Returns True if table isTableState.State.ENABLING
. -
isEnabledOrEnabling
Returns True ifTableState.State.ENABLED
orTableState.State.ENABLING
-
isDisabled
Returns True if table is disabled. -
isDisabling
Returns True if table is disabling. -
isDisabledOrDisabling
Returns True ifTableState.State.DISABLED
orTableState.State.DISABLED
-
getState
Returns table state -
getTableName
Table name for state -
inStates
Check that table in given states- Parameters:
state
- state- Returns:
- true if satisfies
-
inStates
Check that table in given states- Parameters:
states
- state list- Returns:
- true if satisfies
-
convert
Covert to PB version of TableState -
convert
public static TableState convert(TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState tableState) Covert from PB version of TableState- Parameters:
tableName
- table this state oftableState
- convert from
-
parseFrom
public static TableState parseFrom(TableName tableName, byte[] bytes) throws DeserializationException - Throws:
DeserializationException
-
isInStates
Static version of state checker- Parameters:
target
- equals to any of- Returns:
- true if satisfies
-
equals
-
hashCode
-
toString
-