Java Code Examples for org.apache.hadoop.hbase.HTableDescriptor#equals()
The following examples show how to use
org.apache.hadoop.hbase.HTableDescriptor#equals() .
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: TestMasterObserver.java From hbase with Apache License 2.0 | 5 votes |
private void modifyTableSync(Admin admin, TableName tableName, TableDescriptor tableDescriptor) throws IOException { admin.modifyTable(tableDescriptor); //wait until modify table finishes for (int t = 0; t < 100; t++) { //10 sec timeout HTableDescriptor td = new HTableDescriptor( admin.getDescriptor(tableDescriptor.getTableName())); if (td.equals(tableDescriptor)) { break; } Threads.sleep(100); } }