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(org.codehaus.jackson.JsonNode resultNode)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewResult
public ViewResult(org.codehaus.jackson.JsonNode resultNode)
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
iterator
public Iterator<ViewResult.Row> iterator()
- Specified by:
iterator in interface Iterable<ViewResult.Row>
isEmpty
public boolean isEmpty()
Copyright © 2011. All Rights Reserved.