@Override @SuppressWarnings({ "rawtypes", "unchecked" }) synchronized public Value get(Transaction tx, Key key) throws IOException { assertLoaded(); for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { this.lastGetNodeCache = ((ListIterator) iterator).getCurrent(); this.lastGetEntryCache = candidate; this.lastCacheTxSrc = new WeakReference<Transaction>(tx); return candidate.getValue(); } } return null; }
while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) {
if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue; while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue;
if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue; while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue;
if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue; while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue;
if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue; while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) { oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue;
while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) {
while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) {
while (iterator.hasNext() && ((ListIterator) iterator).getCurrent() != lastGetNodeCache) { Map.Entry<Key, Value> entry = iterator.next(); if (entry.getKey().equals(key)) {
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) synchronized public Value get(Transaction tx, Key key) throws IOException { assertLoaded(); for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { this.lastGetNodeCache = ((ListIterator) iterator).getCurrent(); this.lastGetEntryCache = candidate; this.lastCacheTxSrc = new WeakReference<Transaction>(tx); return candidate.getValue(); } } return null; }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) synchronized public Value get(Transaction tx, Key key) throws IOException { assertLoaded(); for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { this.lastGetNodeCache = ((ListIterator) iterator).getCurrent(); this.lastGetEntryCache = candidate; this.lastCacheTxSrc = new WeakReference<Transaction>(tx); return candidate.getValue(); } } return null; }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) synchronized public Value get(Transaction tx, Key key) throws IOException { assertLoaded(); for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { this.lastGetNodeCache = ((ListIterator) iterator).getCurrent(); this.lastGetEntryCache = candidate; this.lastCacheTxSrc = new WeakReference<Transaction>(tx); return candidate.getValue(); } } return null; }