Interface PipelineStage.ResultStream.ResultRow

All Superinterfaces:
Map<String,Object>
Enclosing interface:
PipelineStage.ResultStream

public static interface PipelineStage.ResultStream.ResultRow extends Map<String,Object>
A representation of a result row accessible as an immutable map view.

Values can be fetched:

  • directly by a string key using row["myKey"] or row.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
  • Method Details

    • get

      Object get(Selectable toSelect)
      Gets the value of the given column reference in this PipelineStage.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