/** * Creates a new instance of {@link AccumuloParentMetadataRepository}. * @param accumuloRyaDao the {@link AccumuloRyaDAO}. (not {@code null}) */ public AccumuloParentMetadataRepository(final AccumuloRyaDAO accumuloRyaDao) { this.accumuloRyaDao = checkNotNull(accumuloRyaDao); connector = accumuloRyaDao.getConnector(); tablePrefix = accumuloRyaDao.getConf().getTablePrefix(); mergeParentMetadataTableName = tablePrefix + BASE_MERGE_METADATA_TABLE_NAME; }
/** * Creates a new instance of {@link AccumuloParentMetadataRepository}. * @param accumuloRyaDao the {@link AccumuloRyaDAO}. (not {@code null}) */ public AccumuloParentMetadataRepository(final AccumuloRyaDAO accumuloRyaDao) { this.accumuloRyaDao = checkNotNull(accumuloRyaDao); connector = accumuloRyaDao.getConnector(); tablePrefix = accumuloRyaDao.getConf().getTablePrefix(); mergeParentMetadataTableName = tablePrefix + BASE_MERGE_METADATA_TABLE_NAME; }
private boolean tableExists(final String tableName) { return getConnector().tableOperations().exists(tableName); }
private boolean tableExists(final String tableName) { return getConnector().tableOperations().exists(tableName); }
final Scanner scanner = childDao.getConnector().createScanner(table, childAuths); for (final Map.Entry<Key, Value> row : scanner) { compositeKey.setKey(row.getKey());