@Override public boolean delete(final Transaction txn, final byte[] tkey) throws IOException { final byte[] key = inverseTransformKey(tkey); return key == null ? false : mSource.delete(txn, key); }
@Override public final LockResult tryLockExclusive(Transaction txn, byte[] tkey, long nanosTimeout) throws DeadlockException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.tryLockExclusive(txn, key, nanosTimeout); } throw fail(); }
@Override public final LockResult lockUpgradable(Transaction txn, byte[] tkey) throws LockFailureException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockUpgradable(txn, key); } throw fail(); }
@Override public final LockResult lockShared(Transaction txn, byte[] tkey) throws LockFailureException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockShared(txn, key); } throw fail(); }
@Override public final LockResult lockShared(Transaction txn, byte[] tkey) throws LockFailureException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockShared(txn, key); } throw fail(); }
@Override public final LockResult tryLockExclusive(Transaction txn, byte[] tkey, long nanosTimeout) throws DeadlockException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.tryLockExclusive(txn, key, nanosTimeout); } throw fail(); }
@Override public final LockResult lockShared(Transaction txn, byte[] tkey) throws LockFailureException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockShared(txn, key); } throw fail(); }
@Override public final LockResult tryLockUpgradable(Transaction txn, byte[] tkey, long nanosTimeout) throws DeadlockException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.tryLockUpgradable(txn, key, nanosTimeout); } throw fail(); }
@Override public final LockResult lockCheck(Transaction txn, byte[] tkey) throws ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockCheck(txn, key); } throw fail(); }
@Override public final LockResult tryLockShared(Transaction txn, byte[] tkey, long nanosTimeout) throws DeadlockException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.tryLockShared(txn, key, nanosTimeout); } throw fail(); }
@Override public final LockResult lockExclusive(Transaction txn, byte[] tkey) throws LockFailureException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockExclusive(txn, key); } throw fail(); }
@Override public final LockResult lockCheck(Transaction txn, byte[] tkey) throws ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockCheck(txn, key); } throw fail(); }
@Override public final LockResult lockExclusive(Transaction txn, byte[] tkey) throws LockFailureException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.lockExclusive(txn, key); } throw fail(); }
@Override public final LockResult tryLockUpgradable(Transaction txn, byte[] tkey, long nanosTimeout) throws DeadlockException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.tryLockUpgradable(txn, key, nanosTimeout); } throw fail(); }
@Override public final LockResult tryLockUpgradable(Transaction txn, byte[] tkey, long nanosTimeout) throws DeadlockException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.tryLockUpgradable(txn, key, nanosTimeout); } throw fail(); }
@Override public final LockResult tryLockExclusive(Transaction txn, byte[] tkey, long nanosTimeout) throws DeadlockException, ViewConstraintException { byte[] key = inverseTransformKey(tkey); if (key != null) { return mSource.tryLockExclusive(txn, key, nanosTimeout); } throw fail(); }
@Override public View viewGe(byte[] tkey) { byte[] key = inverseTransformKey(tkey); if (key == null) { key = mTransformer.inverseTransformKeyGt(tkey); if (key == null) { return nonView(); } } return new TransformedView(mSource.viewGe(key), mTransformer); }
@Override public View viewLe(byte[] tkey) { byte[] key = inverseTransformKey(tkey); if (key == null) { key = mTransformer.inverseTransformKeyLt(tkey); if (key == null) { return nonView(); } } return new TransformedView(mSource.viewLe(key), mTransformer); }
@Override public View viewLe(byte[] tkey) { byte[] key = inverseTransformKey(tkey); if (key == null) { key = mTransformer.inverseTransformKeyLt(tkey); if (key == null) { return nonView(); } } return new TransformedView(mSource.viewLe(key), mTransformer); }
@Override public byte[] exchange(final Transaction txn, final byte[] tkey, final byte[] tvalue) throws IOException { final byte[] key = inverseTransformKey(tkey); if (key == null) { throw fail(); } return mTransformer.transformValue (mSource.exchange(txn, key, mTransformer.inverseTransformValue(tvalue, key, tkey)), key, tkey); }