Class QueryResponse
- java.lang.Object
-
- com.couchbase.client.core.msg.BaseResponse
-
- com.couchbase.client.core.msg.query.QueryResponse
-
- All Implemented Interfaces:
ChunkedResponse<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer>,Response
public class QueryResponse extends BaseResponse implements ChunkedResponse<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer>
-
-
Constructor Summary
Constructors Constructor Description QueryResponse(ResponseStatus status, QueryChunkHeader header, Flux<QueryChunkRow> rows, Mono<QueryChunkTrailer> trailer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeExceptionerrorIncompleteResponse()static RuntimeExceptionerrorProfileNotPresent()static RuntimeExceptionerrorSignatureNotPresent()static RuntimeExceptionerrorWarningsNotPresent()QueryChunkHeaderheader()Returns the header for this response, immediately available.Flux<QueryChunkRow>rows()Returns the rows for this response, available pushed as they come streaming in.StringtoString()Mono<QueryChunkTrailer>trailer()Returns the trailer for this response, available at the end of the response eventually.-
Methods inherited from class com.couchbase.client.core.msg.BaseResponse
status
-
-
-
-
Constructor Detail
-
QueryResponse
public QueryResponse(ResponseStatus status, QueryChunkHeader header, Flux<QueryChunkRow> rows, Mono<QueryChunkTrailer> trailer)
-
-
Method Detail
-
errorSignatureNotPresent
public static RuntimeException errorSignatureNotPresent()
-
errorWarningsNotPresent
public static RuntimeException errorWarningsNotPresent()
-
errorProfileNotPresent
public static RuntimeException errorProfileNotPresent()
-
errorIncompleteResponse
public static RuntimeException errorIncompleteResponse()
-
header
public QueryChunkHeader header()
Description copied from interface:ChunkedResponseReturns the header for this response, immediately available.- Specified by:
headerin interfaceChunkedResponse<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer>
-
rows
public Flux<QueryChunkRow> rows()
Description copied from interface:ChunkedResponseReturns the rows for this response, available pushed as they come streaming in.- Specified by:
rowsin interfaceChunkedResponse<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer>
-
trailer
public Mono<QueryChunkTrailer> trailer()
Description copied from interface:ChunkedResponseReturns the trailer for this response, available at the end of the response eventually.- Specified by:
trailerin interfaceChunkedResponse<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer>
-
toString
public String toString()
- Overrides:
toStringin classBaseResponse
-
-