use of org.apache.hadoop.hbase.thrift2.generated.TIOError in project hbase by apache.
the class ThriftHBaseServiceHandler method createTable.
@Override
public void createTable(TTableDescriptor desc, List<ByteBuffer> splitKeys) throws TIOError, TException {
try {
TableDescriptor descriptor = tableDescriptorFromThrift(desc);
byte[][] split = splitKeyFromThrift(splitKeys);
if (split != null) {
connectionCache.getAdmin().createTable(descriptor, split);
} else {
connectionCache.getAdmin().createTable(descriptor);
}
} catch (IOException e) {
throw getTIOError(e);
}
}
Aggregations