@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.exchange(txn, key, value); }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.exchange(txn, key, value); }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.exchange(txn, key, value); }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.exchange(txn, applyPrefix(key), value); }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.exchange(txn, applyPrefix(key), value); }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.exchange(txn, applyPrefix(key), value); }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { if (inRange(key)) { return mSource.exchange(txn, key, value); } else { throw fail(); } }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { if (inRange(key)) { return mSource.exchange(txn, key, value); } if (value == null) { return null; } throw fail(); }
@Override public byte[] exchange(Transaction txn, byte[] key, byte[] value) throws IOException { if (inRange(key)) { return mSource.exchange(txn, key, value); } if (value == null) { return null; } throw fail(); }
@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); }
@Override public byte[] exchange(final Transaction txn, final byte[] tkey, final byte[] tvalue) throws IOException { final byte[] key = inverseTransformKey(tkey); if (key == null) { if (tvalue == null) { return null; } throw fail(); } return mTransformer.transformValue (mSource.exchange(txn, key, mTransformer.inverseTransformValue(tvalue, key, tkey)), key, tkey); }
@Override public byte[] exchange(final Transaction txn, final byte[] tkey, final byte[] tvalue) throws IOException { final byte[] key = inverseTransformKey(tkey); if (key == null) { if (tvalue == null) { return null; } throw fail(); } return mTransformer.transformValue (mSource.exchange(txn, key, mTransformer.inverseTransformValue(tvalue, key, tkey)), key, tkey); }