org.ektorp
Class StreamingViewResult

java.lang.Object
  extended by 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

Constructor Summary
StreamingViewResult(org.codehaus.jackson.map.ObjectMapper objectMapper, InputStream inputStream, boolean ignoreNotFound)
           
 
Method Summary
 void close()
           
 int getOffset()
           
 int getTotalRows()
           
 Iterator<ViewResult.Row> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingViewResult

public StreamingViewResult(org.codehaus.jackson.map.ObjectMapper objectMapper,
                           InputStream inputStream,
                           boolean ignoreNotFound)
Method Detail

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.