@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<AsyncSpatialViewResult> |
mapToSpatialViewResult(AsyncBucket bucket,
SpatialViewQuery query,
ViewQueryResponse response)
Maps a raw
ViewQueryResponse into a AsyncSpatialViewResult . |
static Observable<AsyncViewResult> |
mapToViewResult(AsyncBucket bucket,
ViewQuery query,
ViewQueryResponse response)
Maps a raw
ViewQueryResponse into a AsyncViewResult . |
public static Observable<AsyncViewResult> mapToViewResult(AsyncBucket bucket, ViewQuery query, 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
.public static Observable<AsyncSpatialViewResult> mapToSpatialViewResult(AsyncBucket bucket, SpatialViewQuery query, ViewQueryResponse response)
Maps a raw ViewQueryResponse
into a AsyncSpatialViewResult
.
bucket
- reference to the bucket.query
- the original query object.response
- the response from the server.AsyncSpatialViewResult
.Copyright © 2015 Couchbase, Inc.