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)
| 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. |