Class GroupResult

java.lang.Object
com.swiftmq.impl.streams.comp.memory.GroupResult

public class GroupResult extends Object
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 Type
    Method
    Description
    average(String propName)
    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.
    void
    Executes the Callback for each Memory in this GroupResult
    max(String propName)
    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.
    min(String propName)
    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.
    Returns the result as an array of Memories.
    sum(String propName)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • result

      public Memory[] result()
      Returns the result as an array of Memories.
      Returns:
      Array of Memories
    • min

      public Memory min(String propName) throws Exception
      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

      public Memory max(String propName) throws Exception
      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

      public Memory sum(String propName) throws Exception
      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

      public Memory average(String propName) throws Exception
      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

      public void forEach(ForEachMemoryCallback callback) throws Exception
      Executes the Callback for each Memory in this GroupResult
      Parameters:
      callback - Callback
      Throws:
      Exception