Java Code Examples for org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos#TableState

The following examples show how to use org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos#TableState . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TableState.java    From hbase with Apache License 2.0 4 votes vote down vote up
/**
 * Covert to PB version of TableState
 * @return PB
 */
public HBaseProtos.TableState convert() {
  return HBaseProtos.TableState.newBuilder()
      .setState(this.state.convert()).build();
}
 
Example 2
Source File: TableState.java    From hbase with Apache License 2.0 2 votes vote down vote up
/**
 * Covert from PB version of TableState
 *
 * @param tableName table this state of
 * @param tableState convert from
 * @return POJO
 */
public static TableState convert(TableName tableName, HBaseProtos.TableState tableState) {
  TableState.State state = State.convert(tableState.getState());
  return new TableState(tableName, state);
}