Class ClassicCoreQueryResult
- java.lang.Object
-
- com.couchbase.client.core.api.query.CoreQueryResult
-
- com.couchbase.client.core.classic.query.ClassicCoreQueryResult
-
@Internal public class ClassicCoreQueryResult extends CoreQueryResult
-
-
Constructor Summary
Constructors Constructor Description ClassicCoreQueryResult(QueryChunkHeader header, List<QueryChunkRow> rows, QueryChunkTrailer trailer, NodeIdentifier lastDispatchedToNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<QueryChunkRow>
collectRows()
Returns all rows in a buffered list.NodeIdentifier
lastDispatchedTo()
The last node the request was dispatched to.CoreQueryMetaData
metaData()
Returns theCoreQueryMetaData
giving access to the additional metadata associated with this query.Stream<QueryChunkRow>
rows()
Returns all rows.
-
-
-
Constructor Detail
-
ClassicCoreQueryResult
public ClassicCoreQueryResult(QueryChunkHeader header, List<QueryChunkRow> rows, QueryChunkTrailer trailer, NodeIdentifier lastDispatchedToNode)
-
-
Method Detail
-
rows
public Stream<QueryChunkRow> rows()
Description copied from class:CoreQueryResult
Returns all rows. As this is a Stream this is a once-through operation.- Specified by:
rows
in classCoreQueryResult
-
collectRows
public List<QueryChunkRow> collectRows()
Description copied from class:CoreQueryResult
Returns all rows in a buffered list. As this is building on a Stream, this is a once-through operation.- Overrides:
collectRows
in classCoreQueryResult
-
metaData
public CoreQueryMetaData metaData()
Description copied from class:CoreQueryResult
Returns theCoreQueryMetaData
giving access to the additional metadata associated with this query.- Specified by:
metaData
in classCoreQueryResult
-
lastDispatchedTo
public NodeIdentifier lastDispatchedTo()
Description copied from class:CoreQueryResult
The last node the request was dispatched to.- Specified by:
lastDispatchedTo
in classCoreQueryResult
-
-