public static Scanner getScanner(AccumuloClient client) throws ReplicationTableOfflineException { try { return client.createScanner(NAME, Authorizations.EMPTY); } catch (TableNotFoundException e) { throw new AssertionError(NAME + " should exist, but doesn't."); } catch (TableOfflineException e) { throw new ReplicationTableOfflineException(e); } }
public static BatchScanner getBatchScanner(AccumuloClient client, int queryThreads) throws ReplicationTableOfflineException { try { return client.createBatchScanner(NAME, Authorizations.EMPTY, queryThreads); } catch (TableNotFoundException e) { throw new AssertionError(NAME + " should exist, but doesn't."); } catch (TableOfflineException e) { throw new ReplicationTableOfflineException(e); } }
public static BatchWriter getBatchWriter(AccumuloClient client) throws ReplicationTableOfflineException { try { return client.createBatchWriter(NAME, new BatchWriterConfig()); } catch (TableNotFoundException e) { throw new AssertionError(NAME + " should exist, but doesn't."); } catch (TableOfflineException e) { throw new ReplicationTableOfflineException(e); } }
public static BatchScanner getBatchScanner(Connector conn, int queryThreads) throws ReplicationTableOfflineException { try { return conn.createBatchScanner(NAME, Authorizations.EMPTY, queryThreads); } catch (TableNotFoundException e) { throw new AssertionError(NAME + " should exist, but doesn't."); } catch (TableOfflineException e) { throw new ReplicationTableOfflineException(e); } }
public static Scanner getScanner(Connector conn) throws ReplicationTableOfflineException { try { return conn.createScanner(NAME, Authorizations.EMPTY); } catch (TableNotFoundException e) { throw new AssertionError(NAME + " should exist, but doesn't."); } catch (TableOfflineException e) { throw new ReplicationTableOfflineException(e); } }
public static BatchWriter getBatchWriter(Connector conn) throws ReplicationTableOfflineException { try { return conn.createBatchWriter(NAME, new BatchWriterConfig()); } catch (TableNotFoundException e) { throw new AssertionError(NAME + " should exist, but doesn't."); } catch (TableOfflineException e) { throw new ReplicationTableOfflineException(e); } }