@Override public boolean hasNext() { if (!getScannerIterator().hasNext() || !more) { try { writer.close(); } catch (MutationsRejectedException e) { log.error(e.toString()); if (Shell.isDebuggingEnabled()) for (ConstraintViolationSummary cvs : e.getConstraintViolationSummaries()) log.trace(cvs.toString()); } return false; } return true; }
writer.addMutation(m); } catch (MutationsRejectedException e) { log.error(e.toString()); if (Shell.isDebuggingEnabled()) for (ConstraintViolationSummary cvs : e.getConstraintViolationSummaries())
@Override public void closeWriter(String writer) throws UnknownWriter, org.apache.accumulo.proxy.thrift.MutationsRejectedException, TException { try { BatchWriterPlusProblem bwpe = getWriter(writer); if (bwpe.exception != null) throw bwpe.exception; bwpe.writer.close(); writerCache.invalidate(UUID.fromString(writer)); } catch (UnknownWriter uw) { throw uw; } catch (MutationsRejectedException e) { throw new org.apache.accumulo.proxy.thrift.MutationsRejectedException(e.toString()); } catch (Exception e) { throw new TException(e); } }
@Override public boolean hasNext() { if (!getScannerIterator().hasNext() || !more) { try { writer.close(); } catch (MutationsRejectedException e) { log.error(e.toString()); if (Shell.isDebuggingEnabled()) for (ConstraintViolationSummary cvs : e.getConstraintViolationSummaries()) log.trace(cvs.toString()); } return false; } return true; }
@Override public void flush(String writer) throws UnknownWriter, org.apache.accumulo.proxy.thrift.MutationsRejectedException, TException { try { BatchWriterPlusProblem bwpe = getWriter(writer); if (bwpe.exception != null) throw bwpe.exception; bwpe.writer.flush(); } catch (MutationsRejectedException e) { throw new org.apache.accumulo.proxy.thrift.MutationsRejectedException(e.toString()); } catch (UnknownWriter uw) { throw uw; } catch (Exception e) { throw new TException(e); } }
writer.addMutation(m); } catch (MutationsRejectedException e) { log.error(e.toString()); if (Shell.isDebuggingEnabled()) for (ConstraintViolationSummary cvs : e.getConstraintViolationSummaries())