org.ektorp
Class StreamingViewResult
java.lang.Object
org.ektorp.StreamingViewResult
- All Implemented Interfaces:
- Closeable, Serializable, Iterable<ViewResult.Row>
public class StreamingViewResult
- extends Object
- implements Serializable, Iterable<ViewResult.Row>, Closeable
- Author:
- Sverre Kristian Valskrå
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamingViewResult
public StreamingViewResult(org.codehaus.jackson.map.ObjectMapper objectMapper,
InputStream inputStream,
boolean ignoreNotFound)
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>
close
public void close()
- Specified by:
close
in interface Closeable
Copyright © 2011. All Rights Reserved.