com.couchbase.client.protocol.views
Class ViewResponse

java.lang.Object
  extended by com.couchbase.client.protocol.views.ViewResponse
All Implemented Interfaces:
java.lang.Iterable<ViewRow>
Direct Known Subclasses:
ViewResponseNoDocs, ViewResponseReduced, ViewResponseWithDocs

public abstract class ViewResponse
extends java.lang.Object
implements java.lang.Iterable<ViewRow>

Holds the response of a queried view.


Field Summary
protected  java.util.Collection<RowError> errors
           
protected  java.util.Collection<ViewRow> rows
           
 
Constructor Summary
ViewResponse(java.util.Collection<ViewRow> r, java.util.Collection<RowError> e)
           
 
Method Summary
 java.util.Collection<RowError> getErrors()
           
abstract  java.util.Map<java.lang.String,java.lang.Object> getMap()
           
 java.util.Iterator<ViewRow> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

protected final java.util.Collection<ViewRow> rows

errors

protected final java.util.Collection<RowError> errors
Constructor Detail

ViewResponse

public ViewResponse(java.util.Collection<ViewRow> r,
                    java.util.Collection<RowError> e)
Method Detail

getErrors

public java.util.Collection<RowError> getErrors()

iterator

public java.util.Iterator<ViewRow> iterator()
Specified by:
iterator in interface java.lang.Iterable<ViewRow>

size

public int size()

getMap

public abstract java.util.Map<java.lang.String,java.lang.Object> getMap()


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.