Class DefaultAsyncAnalyticsDeferredResultHandle
java.lang.Object
com.couchbase.client.java.analytics.DefaultAsyncAnalyticsDeferredResultHandle
- All Implemented Interfaces:
AsyncAnalyticsDeferredResultHandle
@Experimental @Public public class DefaultAsyncAnalyticsDeferredResultHandle extends Object implements AsyncAnalyticsDeferredResultHandle
Default implementation of
AsyncAnalyticsDeferredResultHandle
- Since:
- 2.7.2
- Author:
- Subhashni Balakrishnan
-
Constructor Summary
Constructors Constructor Description DefaultAsyncAnalyticsDeferredResultHandle(String handle, CouchbaseEnvironment env, ClusterFacade core, String bucket, String username, String password, long timeout, TimeUnit timeunit)
-
Method Summary
Modifier and Type Method Description String
getResultHandleUri()
String
getStatusHandleUri()
rx.Observable<AsyncAnalyticsQueryRow>
rows()
rx.Observable<AsyncAnalyticsQueryRow>
rows(long timeout, TimeUnit timeunit)
rx.Observable<String>
status()
rx.Observable<String>
status(long timeout, TimeUnit timeunit)
String
toString()
-
Constructor Details
-
DefaultAsyncAnalyticsDeferredResultHandle
public DefaultAsyncAnalyticsDeferredResultHandle(String handle, CouchbaseEnvironment env, ClusterFacade core, String bucket, String username, String password, long timeout, TimeUnit timeunit)
-
-
Method Details
-
getStatusHandleUri
- Specified by:
getStatusHandleUri
in interfaceAsyncAnalyticsDeferredResultHandle
-
getResultHandleUri
- Specified by:
getResultHandleUri
in interfaceAsyncAnalyticsDeferredResultHandle
-
rows
- Specified by:
rows
in interfaceAsyncAnalyticsDeferredResultHandle
- Returns:
- an async stream of each row resulting from the query (empty if fatal errors occurred) with custom timeout for deferred queries since it does a later fetch. If no timeout is specified, it uses the default query timeout. If the results are not yet available, throws
-
rows
- Specified by:
rows
in interfaceAsyncAnalyticsDeferredResultHandle
- Returns:
- an async stream of each row resulting from the deferrred query (empty if fatal errors occurred) with custom timeout for deferred queries since it does a later fetch. If no timeout is specified, it uses the default query timeout.
-
status
- Specified by:
status
in interfaceAsyncAnalyticsDeferredResultHandle
- Returns:
- the current status of the query execution retrieved from the server with default timeout
-
status
- Specified by:
status
in interfaceAsyncAnalyticsDeferredResultHandle
- Returns:
- the current status of the query execution retrieved from the server with custom timeout
-
toString
-