public PListEntry copy() { return new PListEntry(this.entry, this.byteSequence, locator); } }
@Override public PListEntry next() { Map.Entry<String, Location> entry = iterator.next(); ByteSequence bs = null; try { bs = store.getPayload(entry.getValue()); } catch (IOException unexpected) { NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage()); e.initCause(unexpected); throw e; } return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey())); }
public PListEntry getLast() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getLast(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry getFirst() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getFirst(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry get(final long position) throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position); ref.set(iterator.next()); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry copy() { return new PListEntry(this.entry, this.byteSequence, locator); } }
public PListEntry copy() { return new PListEntry(this.entry, this.byteSequence, locator); } }
public PListEntry copy() { return new PListEntry(this.entry, this.byteSequence, locator); } }
@Override public PListEntry next() { Map.Entry<String, Location> entry = iterator.next(); ByteSequence bs = null; try { bs = store.getPayload(entry.getValue()); } catch (IOException unexpected) { NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage()); e.initCause(unexpected); throw e; } return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey())); }
@Override public PListEntry next() { Map.Entry<String, Location> entry = iterator.next(); ByteSequence bs = null; try { bs = store.getPayload(entry.getValue()); } catch (IOException unexpected) { NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage()); e.initCause(unexpected); throw e; } return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey())); }
@Override public PListEntry next() { Map.Entry<String, Location> entry = iterator.next(); ByteSequence bs = null; try { bs = store.getPayload(entry.getValue()); } catch (IOException unexpected) { NoSuchElementException e = new NoSuchElementException(unexpected.getLocalizedMessage()); e.initCause(unexpected); throw e; } return new PListEntry(entry.getKey(), bs, new Locator(entry.getKey())); }
public PListEntry getFirst() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getFirst(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry getLast() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getLast(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry getFirst() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getFirst(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry getFirst() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getFirst(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry getLast() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getLast(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry get(final long position) throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position); ref.set(iterator.next()); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry getLast() throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { ref.set(getLast(tx)); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry get(final long position) throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position); ref.set(iterator.next()); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }
public PListEntry get(final long position) throws IOException { PListEntry result = null; final AtomicReference<Map.Entry<String, Location>> ref = new AtomicReference<Map.Entry<String, Location>>(); synchronized (indexLock) { this.store.getPageFile().tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { Iterator<Map.Entry<String, Location>> iterator = iterator(tx, position); ref.set(iterator.next()); } }); } if (ref.get() != null) { ByteSequence bs = this.store.getPayload(ref.get().getValue()); result = new PListEntry(ref.get().getKey(), bs, new Locator(ref.get().getKey())); } return result; }