@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
/** * Delegates to {@link HTable#isAutoFlush()} */ public boolean isAutoFlush() { return table.isAutoFlush(); }
@Override public boolean isAutoFlush() { return delegate.isAutoFlush(); }
@Override public boolean isAutoFlush() { return table.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
public boolean isAutoFlush() { return table.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { return hTable.isAutoFlush(); }
@Override public boolean isAutoFlush() { checkState(); return table.isAutoFlush(); }
/** * Performs the operations necessary to commit the specified mutations to the underlying data store. * If no operations are specified then no mutations occur. * * @param deletes A list of {@link Delete} operations to execute, not null * @param puts A list of {@link Put} operations to execute, not null */ private void performMutations(final List<Delete> deletes, final List<Put> puts) { checkNotNull(deletes, "The delete mutations container is invalid"); checkNotNull(puts, "The put mutations container is invalid"); checkArgument(!deletes.isEmpty() || !puts.isEmpty(), "At least one mutation operation must be specified"); HTableInterface hTable = getHTable(); try { if (!deletes.isEmpty()) { HBaseOperations.performDelete(hTable, deletes); } if (!puts.isEmpty()) { HBaseOperations.performPut(hTable, puts); } // Only flush if the table is not configured to auto flush if (!hTable.isAutoFlush()) { HBaseOperations.performFlush(hTable); } } finally { HBaseOperations.closeTable(hTable); } }
/** {@inheritDoc} */ @Override public void commit() throws IOException { Preconditions.checkState(mPut != null, "commit() must be paired with a call to begin()"); final State state = mState.get(); Preconditions.checkState(state == State.OPEN, "Cannot commit a transaction on an AtomicFijiPutter instance in state %s.", state); // We don't actually need the writer layout capsule here, but we want the layout update check. getWriterLayoutCapsule(); SchemaPlatformBridge bridge = SchemaPlatformBridge.get(); for (KeyValue kv : mHopper) { bridge.addKVToPut(mPut, kv); } mHTable.put(mPut); if (!mHTable.isAutoFlush()) { mHTable.flushCommits(); } reset(); }
mId, columnName.getFamily(), columnName.getQualifier(), encoded, mPut); if (retVal) { if (!mHTable.isAutoFlush()) { mHTable.flushCommits();