MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / ensureTableFamilyExists

Method ensureTableFamilyExists

src/HBaseClient.java:1180–1183  ·  view source on GitHub ↗

Ensures that a given table/family pair really exists. It's recommended to call this method in the startup code of your application if you know ahead of time which tables / families you're going to need, because it'll allow you to "fail fast" if they're missing. Both strings are assumed to us

(final String table,
                                                  final String family)

Source from the content-addressed store, hash-verified

1178 * @throws NoSuchColumnFamilyException (deferred) if the family doesn't exist.
1179 */
1180 public Deferred<Object> ensureTableFamilyExists(final String table,
1181 final String family) {
1182 return ensureTableFamilyExists(table.getBytes(), family.getBytes());
1183 }
1184
1185 /**
1186 * Ensures that a given table/family pair really exists.

Callers 5

ensureTableExistsMethod · 0.95
testMethod · 0.80
testMethod · 0.80
createOrTruncateTableMethod · 0.80
regression40Method · 0.80

Calls 3

existsMethod · 0.95
probeKeyMethod · 0.95
sendRpcToRegionMethod · 0.95

Tested by 4

testMethod · 0.64
testMethod · 0.64
createOrTruncateTableMethod · 0.64
regression40Method · 0.64