@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.insert(txn, key, value); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.insert(txn, key, value); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.insert(txn, key, value); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { valueCheck(value); return mSource.insert(txn, key, null); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.insert(txn, applyPrefix(key), value); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.insert(txn, applyPrefix(key), value); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { return mSource.insert(txn, applyPrefix(key), value); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { if (inRange(key)) { return mSource.insert(txn, key, value); } if (value == null) { return true; } throw fail(); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { if (inRange(key)) { return mSource.insert(txn, key, value); } if (value == null) { return true; } throw fail(); }
@Override public boolean insert(Transaction txn, byte[] key, byte[] value) throws IOException { if (inRange(key)) { return mSource.insert(txn, key, value); } if (value == null) { return true; } throw fail(); }
@Override public boolean insert(final Transaction txn, final byte[] tkey, final byte[] tvalue) throws IOException { final byte[] key = inverseTransformKey(tkey); if (key == null) { if (tvalue == null) { return true; } throw fail(); } final byte[] value = mTransformer.inverseTransformValue(tvalue, key, tkey); if (txn == null || txn.lockMode() == LockMode.UNSAFE) { return mSource.insert(txn, key, value); } return condStore(txn, key, value, Cursor.NOT_LOADED); }
@Override public boolean insert(final Transaction txn, final byte[] tkey, final byte[] tvalue) throws IOException { final byte[] key = inverseTransformKey(tkey); if (key == null) { if (tvalue == null) { return true; } throw fail(); } final byte[] value = mTransformer.inverseTransformValue(tvalue, key, tkey); if (txn == null || txn.lockMode() == LockMode.UNSAFE) { return mSource.insert(txn, key, value); } return condStore(txn, key, value, Cursor.NOT_LOADED); }