public class QueryRow
extends java.lang.Object
| Constructor and Description |
|---|
QueryRow(java.lang.String docID,
long sequence,
java.lang.Object key,
java.lang.Object value,
RevisionInternal docRevision)
Constructor
The database property will be filled in when I'm added to a QueryEnumerator.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
asJSONDictionary() |
boolean |
equals(java.lang.Object object)
Compare this against the given QueryRow for equality.
|
java.util.List<SavedRevision> |
getConflictingRevisions()
Returns all conflicting revisions of the document, or nil if the
document is not in conflict.
|
protected Database |
getDatabase() |
Document |
getDocument()
The document this row was mapped from.
|
java.lang.String |
getDocumentId()
The ID of the document described by this view row.
|
java.util.Map<java.lang.String,java.lang.Object> |
getDocumentProperties()
The properties of the document this row was mapped from.
|
java.lang.String |
getDocumentRevisionId()
The revision ID of the document this row was mapped from.
|
java.lang.Object |
getKey()
The row's key: this is the first parameter passed to the emit() call that generated the row.
|
long |
getSequenceNumber()
The local sequence number of the associated doc/revision.
|
java.lang.String |
getSourceDocumentId()
The ID of the document that caused this view row to be emitted.
|
java.lang.Object |
getValue()
The row's value: this is the second parameter passed to the emit() call that generated the row.
|
protected void |
setDatabase(Database database) |
java.lang.String |
toString()
Return a string representation of this QueryRow.
|
public QueryRow(java.lang.String docID,
long sequence,
java.lang.Object key,
java.lang.Object value,
RevisionInternal docRevision)
protected Database getDatabase()
protected void setDatabase(Database database)
public Document getDocument()
public java.lang.Object getKey()
public java.lang.Object getValue()
public java.lang.String getDocumentId()
public java.lang.String getSourceDocumentId()
public java.lang.String getDocumentRevisionId()
public java.util.Map<java.lang.String,java.lang.Object> getDocumentProperties()
public long getSequenceNumber()
public java.util.List<SavedRevision> getConflictingRevisions()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the QueryRow to compare this instance with.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.Object> asJSONDictionary()