Ensures that a given table 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. @param table The name of the table you int
(final String table)
| 1229 | * @throws TableNotFoundException (deferred) if the table doesn't exist. |
| 1230 | */ |
| 1231 | public Deferred<Object> ensureTableExists(final String table) { |
| 1232 | return ensureTableFamilyExists(table.getBytes(), EMPTY_ARRAY); |
| 1233 | } |
| 1234 | |
| 1235 | /** |
| 1236 | * Ensures that a given table really exists. |
no test coverage detected