@InterfaceStability.Committed @InterfaceAudience.Private public class ViewQueryResponseMapper extends Object
Encapsulates functionality required to map from a ViewQueryResponse
into a AsyncViewResult
.
Constructor and Description |
---|
ViewQueryResponseMapper() |
Modifier and Type | Method and Description |
---|---|
static Observable<AsyncViewResult> |
mapToViewResult(AsyncBucket bucket,
ViewQuery query,
com.couchbase.client.core.message.view.ViewQueryResponse response)
Maps a raw
ViewQueryResponse into a AsyncViewResult . |
public static Observable<AsyncViewResult> mapToViewResult(AsyncBucket bucket, ViewQuery query, com.couchbase.client.core.message.view.ViewQueryResponse response)
Maps a raw ViewQueryResponse
into a AsyncViewResult
.
bucket
- reference to the bucket.query
- the original query object.response
- the response from the server.AsyncViewResult
.Copyright © 2014 Couchbase, Inc.