protected void replaceColumnFamily() throws IOException { sync(); }
private void maybeSync() throws SyncException { try { if (currentSize > bufferSize) sync(); } catch (IOException e) { // addColumn does not throw IOException but we want to report this to the user, // so wrap it in a temporary RuntimeException that we'll catch in rawAddRow above. throw new SyncException(e); } }
private void maybeSync() throws SyncException { try { if (currentSize > bufferSize) sync(); } catch (IOException e) { // addColumn does not throw IOException but we want to report this to the user, // so wrap it in a temporary RuntimeException that we'll catch in rawAddRow above. throw new SyncException(e); } }
private void maybeSync() throws SyncException { try { if (currentSize > bufferSize) sync(); } catch (IOException e) { // addColumn does not throw IOException but we want to report this to the user, // so wrap it in a temporary RuntimeException that we'll catch in rawAddRow above. throw new SyncException(e); } }
/** * If we have marked that the column family is being replaced, when we start the next row, * we should sync out the previous partition and create a new row based on the current value. */ @Override boolean shouldStartNewRow() throws IOException { if (needsSync) { needsSync = false; super.sync(); return true; } return super.shouldStartNewRow(); }
public void close() throws IOException { sync(); put(SENTINEL); try { diskWriter.join(); } catch (InterruptedException e) { throw new RuntimeException(e); } }
@Override public void close() throws IOException { sync(); put(SENTINEL); try { diskWriter.join(); checkForWriterException(); } catch (Throwable e) { throw new RuntimeException(e); } checkForWriterException(); }
@Override public void close() throws IOException { sync(); put(SENTINEL); try { diskWriter.join(); checkForWriterException(); } catch (Throwable e) { throw new RuntimeException(e); } checkForWriterException(); }
@Override public void close() throws IOException { sync(); put(SENTINEL); try { diskWriter.join(); checkForWriterException(); } catch (Throwable e) { throw new RuntimeException(e); } checkForWriterException(); }