com.couchbase.client.protocol.views
Class DocsOperationImpl

java.lang.Object
  extended by com.couchbase.client.protocol.views.HttpOperationImpl
      extended by com.couchbase.client.protocol.views.ViewOperationImpl
          extended by com.couchbase.client.protocol.views.DocsOperationImpl
All Implemented Interfaces:
HttpOperation, ViewOperation

public class DocsOperationImpl
extends ViewOperationImpl

Implementation of a view that calls the map function and includes the documents in the result.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.couchbase.client.protocol.views.ViewOperation
ViewOperation.ViewCallback
 
Field Summary
 
Fields inherited from class com.couchbase.client.protocol.views.ViewOperationImpl
LOGGER
 
Fields inherited from class com.couchbase.client.protocol.views.HttpOperationImpl
callback, exception
 
Constructor Summary
DocsOperationImpl(org.apache.http.HttpRequest r, AbstractView view, ViewOperation.ViewCallback cb)
           
 
Method Summary
protected  void parseError(java.lang.String json, int errorcode)
           
protected  ViewResponseWithDocs parseResult(java.lang.String json)
           
 
Methods inherited from class com.couchbase.client.protocol.views.ViewOperationImpl
getView, handleResponse
 
Methods inherited from class com.couchbase.client.protocol.views.HttpOperationImpl
addAuthHeader, cancel, getCallback, getEntityString, getException, getRequest, hasErrored, isCancelled, isTimedOut, parseViewForStatus, setException, timeOut, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocsOperationImpl

public DocsOperationImpl(org.apache.http.HttpRequest r,
                         AbstractView view,
                         ViewOperation.ViewCallback cb)
Method Detail

parseResult

protected ViewResponseWithDocs parseResult(java.lang.String json)
                                    throws java.text.ParseException
Specified by:
parseResult in class ViewOperationImpl
Throws:
java.text.ParseException

parseError

protected void parseError(java.lang.String json,
                          int errorcode)
                   throws java.text.ParseException
Specified by:
parseError in class ViewOperationImpl
Throws:
java.text.ParseException


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