Class GroupResult
java.lang.Object
com.swiftmq.impl.streams.comp.memory.GroupResult
Represents the result of a group operation on a Memory. It helds an array of Memories.
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Method Summary
Modifier and TypeMethodDescriptionDetermines the average value of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the average Property.void
forEach
(ForEachMemoryCallback callback) Executes the Callback for each Memory in this GroupResultDetermines the maximum value of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the maximum Property.Determines the minimum value of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the minimum Property.Memory[]
result()
Returns the result as an array of Memories.Determines the sum of all values of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the sum Property.
-
Method Details
-
result
Returns the result as an array of Memories.- Returns:
- Array of Memories
-
min
Determines the minimum value of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the minimum Property.- Parameters:
propName
- Property Name- Returns:
- Result
- Throws:
Exception
-
max
Determines the maximum value of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the maximum Property.- Parameters:
propName
- Property Name- Returns:
- Result
- Throws:
Exception
-
sum
Determines the sum of all values of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the sum Property.- Parameters:
propName
- Property Name- Returns:
- Result
- Throws:
Exception
-
average
Determines the average value of a Property and returns the result as a new non-queue Memory with Messages that contains 2 Properties, the grouping Property and the average Property.- Parameters:
propName
- Property Name- Returns:
- Result
- Throws:
Exception
-
forEach
Executes the Callback for each Memory in this GroupResult- Parameters:
callback
- Callback- Throws:
Exception
-