Package org.apache.hadoop.hbase.client
Class TableState
java.lang.Object
org.apache.hadoop.hbase.client.TableState
Represents table state.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableState(TableName tableName, TableState.State state) Create instance of TableState. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableStateconvert()Covert to PB version of TableStatestatic TableStateconvert(TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TableState tableState) Covert from PB version of TableStatebooleangetState()Returns table stateTable name for stateinthashCode()booleaninStates(TableState.State state) Check that table in given statesbooleaninStates(TableState.State... states) Check that table in given statesbooleanReturns True if table is disabled.booleanReturns True ifTableState.State.DISABLEDorTableState.State.DISABLEDbooleanReturns True if table is disabling.booleanReturns True if table isTableState.State.ENABLED.booleanReturns True ifTableState.State.ENABLEDorTableState.State.ENABLINGbooleanReturns True if table isTableState.State.ENABLING.booleanisInStates(TableState.State... target) Static version of state checkerstatic TableStatetoString()
-
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.ENABLEDorTableState.State.ENABLING -
isDisabled
Returns True if table is disabled. -
isDisabling
Returns True if table is disabling. -
isDisabledOrDisabling
Returns True ifTableState.State.DISABLEDorTableState.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
-