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.NodeIdentifierlastDispatchedTo()The last node the request was dispatched to.CoreQueryMetaDatametaData()Returns theCoreQueryMetaDatagiving 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:CoreQueryResultReturns all rows. As this is a Stream this is a once-through operation.- Specified by:
rowsin classCoreQueryResult
-
collectRows
public List<QueryChunkRow> collectRows()
Description copied from class:CoreQueryResultReturns all rows in a buffered list. As this is building on a Stream, this is a once-through operation.- Overrides:
collectRowsin classCoreQueryResult
-
metaData
public CoreQueryMetaData metaData()
Description copied from class:CoreQueryResultReturns theCoreQueryMetaDatagiving access to the additional metadata associated with this query.- Specified by:
metaDatain classCoreQueryResult
-
lastDispatchedTo
public NodeIdentifier lastDispatchedTo()
Description copied from class:CoreQueryResultThe last node the request was dispatched to.- Specified by:
lastDispatchedToin classCoreQueryResult
-
-