/** {@inheritDoc} */ @Override public void close() throws IOException { mTable.release(); } }
/** {@inheritDoc} */ @Override public void close() throws IOException { final State oldState = mState.getAndSet(State.CLOSED); Preconditions.checkState(oldState == State.OPEN, "Cannot close MapFamilyPager while in state %s", oldState); mTable.release(); } }
/** {@inheritDoc} */ @Override public void close() throws IOException { requireAndSetState(State.OPEN, State.CLOSED, "close an HBaseFijiTableAnnotator"); mTable.release(); }
/** {@inheritDoc} */ @Override public void close() throws IOException { final State oldState = mState.getAndSet(State.CLOSED); Preconditions.checkState(oldState == State.OPEN, "Cannot close FijiTableWriter instance %s in state %s.", this, oldState); mLayoutConsumerRegistration.close(); mHTable.close(); mTable.release(); }
/** {@inheritDoc} */ @Override public void close() throws IOException { final State oldState = mState.getAndSet(State.CLOSED); Preconditions.checkState(oldState == State.OPEN, "Cannot close FijiTableReader instance %s in state %s.", this, oldState); ResourceTracker.get().unregisterResource(this); mLayoutConsumerRegistration.close(); mTable.release(); }
/** {@inheritDoc} */ @Override public void close() throws IOException { ResourceTracker.get().unregisterResource(this); mTable.release(); } }
/** {@inheritDoc} */ @Override public void close() throws IOException { final State oldState = mState.getAndSet(State.CLOSED); Preconditions.checkState(oldState == State.OPEN, "Cannot close an AtomicFijiPutter instance in state %s.", oldState); if (mPut != null) { LOG.warn("Closing HBaseAtomicFijiPutter while a transaction on table {} on entity ID {} is " + "in progress. Rolling back transaction.", mTable.getURI(), mEntityId); reset(); } mLayoutConsumerRegistration.close(); mHTable.close(); mTable.release(); } }
/** {@inheritDoc} */ @Override public void close() throws IOException { synchronized (mInternalLock) { flush(); Preconditions.checkState(mState == State.OPEN, "Cannot close BufferedWriter instance %s in state %s.", this, mState); mState = State.CLOSED; ResourceTracker.get().unregisterResource(this); mLayoutConsumerRegistration.close(); mHTable.close(); mTable.release(); } } }