public static Put makePutFromTableState(TableState state, long ts) {
    Put put = new Put(state.getTableName().getName(), ts);
    put.addColumn(HConstants.TABLE_FAMILY, HConstants.TABLE_STATE_QUALIFIER,
      state.convert().toByteArray());
    return put;
  }
Construct PUT for given state
@param state new state
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java