public class Changes
extends java.lang.Object
Changes
objects describe a list of changes to the datastore.
The object contains a list of the changes between some sequence number
(passed to the Datastore.changes(long, int)
method) and
the lastSequence
field of the object.
Constructor and Description |
---|
Changes(long lastSequence,
java.util.List<DocumentRevision> results)
Construct a list of changes
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getIds()
Returns the list of document IDs for the
DocumentRevision s in this
change set. |
long |
getLastSequence()
Returns the last sequence number of this change set.
|
java.util.List<DocumentRevision> |
getResults()
Returns the list of
DocumentRevision s in this change set. |
int |
size()
Returns the number of
DocumentRevision s in this change set. |
public Changes(long lastSequence, java.util.List<DocumentRevision> results)
Construct a list of changes
Note that this constructor is for internal use. To get a set of changes from a given sequence
number, use Datastore.changes(long, int)
lastSequence
- the last sequence number of this change setresults
- the list of DocumentRevision
s in this change setDatastore.changes(long, int)
public long getLastSequence()
Returns the last sequence number of this change set.
This number isn't necessarily the same as the sequence number of the
last DocumentRevision
in the list of changes.
public java.util.List<DocumentRevision> getResults()
Returns the list of DocumentRevision
s in this change set.
DocumentRevision
s in this change set.public int size()
Returns the number of DocumentRevision
s in this change set.
DocumentRevision
s in this change set.public java.util.List<java.lang.String> getIds()
Returns the list of document IDs for the DocumentRevision
s in this
change set.
DocumentRevision
s in this
change set.