/** * {@inheritDoc} */ @Override public LockResult load() throws IOException { return source.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
/** * {@inheritDoc} */ @Override public LockResult load() throws IOException { return source.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
/** * {@inheritDoc} */ @Override public LockResult load() throws IOException { return source.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
@Override public LockResult load() throws IOException { return mSource.load(); }
@Override public LockResult load() throws IOException { if (mOutOfBounds) { throw fail(); } else { return mSource.load(); } }
@Override public LockResult load() throws IOException { final byte[] tkey = mKey; ViewUtils.positionCheck(tkey); mKey = tkey; mValue = NOT_LOADED; final Cursor c = mSource; return transformCurrent(c.load(), c.key(), tkey); }
@Override public LockResult load() throws IOException { final byte[] tkey = mKey; ViewUtils.positionCheck(tkey); mKey = tkey; mValue = NOT_LOADED; final Cursor c = mSource; return transformCurrent(c.load(), c.key(), tkey); }
private LockResult lockOrLoad(Combiner combiner, Cursor from) throws IOException { return (autoload() || combiner.requireValues()) ? from.load() : from.lock(); }
private Entry<Long, Object> entryAt(final Cursor cursor) throws IOException { if (cursor.autoload() == false) { cursor.load(); } long timestamp = TuplUtils.decodeLong(cursor.key()); byte[] data = cursor.value(); Object commitMetadata = this.deserialize(data); return Pair.of(timestamp, commitMetadata); }
private Entry<Long, Object> entryAt(final Cursor cursor) throws IOException { if (cursor.autoload() == false) { cursor.load(); } long timestamp = TuplUtils.decodeLong(cursor.key()); byte[] data = cursor.value(); Object commitMetadata = this.deserialize(data); return Pair.of(timestamp, commitMetadata); }
@Override public LockResult load() throws IOException { final byte[] tkey = mKey; ViewUtils.positionCheck(tkey); if (mSource.key() == null) { throw TransformedView.fail(); } mValue = NOT_LOADED; return transformCurrent(mSource.load(), tkey); }
private static boolean deleteFragmented(_LocalDatabase db, Cursor cursor) throws IOException { cursor.load(); byte[] value = cursor.value(); if (value == null) { return false; } else { long fragmented = p_transfer(value); try { db.deleteFragments(fragmented, 0, value.length); cursor.store(null); } finally { p_delete(fragmented); } return true; } } }
private static boolean deleteFragmented(LocalDatabase db, Cursor cursor) throws IOException { cursor.load(); byte[] value = cursor.value(); if (value == null) { return false; } else { /*P*/ byte[] fragmented = p_transfer(value, false); try { db.deleteFragments(fragmented, 0, value.length); cursor.store(null); } finally { p_delete(fragmented); } return true; } } }