private class OutriggerServerImpl.IteratorImpl extends Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
closed
true if closed, false otherwise |
private EntryRep[] |
lastBatch
Last batch of
EntryRep objects sent to the
client. |
private Uuid |
lastId
Uuid of last entry in lastBatch . |
private RepEnum |
repEnum
RepEnum for all potential matches
|
private EntryRep |
tmpl
The template the match
|
Constructor and Description |
---|
OutriggerServerImpl.IteratorImpl(EntryRep tmpl,
Txn txn)
Create a
RemoteIterImpl object to return all
objects that match the given template. |
Modifier and Type | Method and Description |
---|---|
private void |
assertOpen()
Throw IllegalStateException if operations happen on closed
iterator.
|
void |
close()
Close operations on this iterator.
|
void |
delete(Uuid id)
Delete the entry of the given class and id.
|
EntryRep[] |
nextReps(int max,
Uuid id) |
private void |
rememberLast(EntryRep[] newLast)
Utility to set
lastBatch and lastId . |
private final EntryRep tmpl
private RepEnum repEnum
boolean closed
true
if closed, false
otherwiseprivate EntryRep[] lastBatch
EntryRep
objects sent to the
client.private Uuid lastId
Uuid
of last entry in lastBatch
.private void rememberLast(EntryRep[] newLast)
lastBatch
and lastId
.public void delete(Uuid id)
EntryHolder
efficiently.public void close()
private void assertOpen() throws IllegalStateException
IllegalStateException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.