@Override synchronized public boolean containsKey(Transaction tx, Key key) throws IOException { assertLoaded(); if (size.get() == 0) { return false; } for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { return true; } } return false; }
@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; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
@Override @SuppressWarnings("rawtypes") synchronized public Value remove(Transaction tx, Key key) throws IOException { assertLoaded();
@Override synchronized public boolean containsKey(Transaction tx, Key key) throws IOException { assertLoaded(); if (size.get() == 0) { return false; } for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { return true; } } return false; }
@Override synchronized public boolean containsKey(Transaction tx, Key key) throws IOException { assertLoaded(); if (size.get() == 0) { return false; } for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { return true; } } return false; }
@Override synchronized public boolean containsKey(Transaction tx, Key key) throws IOException { assertLoaded(); if (size.get() == 0) { return false; } for (Iterator<Map.Entry<Key,Value>> iterator = iterator(tx); iterator.hasNext(); ) { Map.Entry<Key,Value> candidate = iterator.next(); if (key.equals(candidate.getKey())) { return true; } } return false; }
@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; }
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
@Override @SuppressWarnings("rawtypes") synchronized public Value remove(Transaction tx, Key key) throws IOException { assertLoaded();
@Override @SuppressWarnings("rawtypes") synchronized public Value remove(Transaction tx, Key key) throws IOException { assertLoaded();
@Override @SuppressWarnings("rawtypes") synchronized public Value remove(Transaction tx, Key key) throws IOException { assertLoaded();