Interface PipelineStage.ResultStream.ResultRow
- Enclosing interface:
PipelineStage.ResultStream
A representation of a result row accessible as an immutable map view.
Values can be fetched:
- directly by a string key using
row["myKey"]
orrow.myKey
. - They can also be accessed via
get(Selectable)
as follows:def qapi = api.queryApi() def p = qapi.tables().products() def sku = p.sku() // the reference to the sku column return qapi.source(p, [sku], [sku.equal("MB-0001")) .stream { it.collect { it[sku] } } // or it.get(sku)
- Since:
- 14.0 - Caribou Lou
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(Selectable toSelect) Gets the value of the given column reference in thisPipelineStage.ResultStream.ResultRow
.Methods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
get
Gets the value of the given column reference in thisPipelineStage.ResultStream.ResultRow
.def qapi = api.queryApi() def p = qapi.tables().products() def sku = p.sku() // the reference to the sku column return qapi.source(p, [sku], [sku.equal("MB-0001")) .stream { it.collect { it[sku] } } // or it.get(sku)
- Parameters:
toSelect
- a reference to the column- Returns:
- the value corresponding to the
toSelect
column - Since:
- 14.0 - Caribou Lou
-