org.ektorp
Class ViewResult
java.lang.Object
org.ektorp.ViewResult
- All Implemented Interfaces:
- Serializable, Iterable<ViewResult.Row>
public class ViewResult
- extends Object
- implements Iterable<ViewResult.Row>, Serializable
- Author:
- henrik lundgren
- See Also:
- Serialized Form
|
Constructor Summary |
ViewResult(com.fasterxml.jackson.databind.JsonNode resultNode,
boolean ignoreNotFound)
|
ViewResult
public ViewResult(com.fasterxml.jackson.databind.JsonNode resultNode,
boolean ignoreNotFound)
getRows
public List<ViewResult.Row> getRows()
getSize
public int getSize()
getOffset
public int getOffset()
- Returns:
- -1 if result did not contain an offset field
getTotalRows
public int getTotalRows()
- Returns:
- -1 if result did not contain a total_rows field
getUpdateSeq
public long getUpdateSeq()
- Returns:
- -1L if result did not contain an update_seq field
isUpdateSeqNumeric
public boolean isUpdateSeqNumeric()
- Returns:
- false if db is an Cloudant instance.
getUpdateSeqAsString
public String getUpdateSeqAsString()
- Returns:
- null if result did not contain an update_seq field
setUpdateSeq
public void setUpdateSeq(String updateSeq)
iterator
public Iterator<ViewResult.Row> iterator()
- Specified by:
iterator in interface Iterable<ViewResult.Row>
isEmpty
public boolean isEmpty()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2017. All rights reserved.