Class AggregateDataCollecting

  • All Implemented Interfaces:
    java.lang.Iterable<Value>

    final class AggregateDataCollecting
    extends AggregateData
    implements java.lang.Iterable<Value>
    Data stored while calculating an aggregate that needs collecting of all values or a distinct aggregate.

    NULL values are not collected. getValue(SessionLocal) method returns null. Use getArray() for instances of this class instead.

    • Constructor Detail

      • AggregateDataCollecting

        AggregateDataCollecting​(boolean distinct,
                                boolean orderedWithOrder,
                                AggregateDataCollecting.NullCollectionMode nullCollectionMode)
        Creates new instance of data for collecting aggregates.
        Parameters:
        distinct - if distinct is used
        orderedWithOrder - if aggregate is an ordered aggregate with ORDER BY clause
        nullCollectionMode - NULL values collection mode
    • Method Detail

      • isNull

        private boolean isNull​(Value v)
      • getCount

        int getCount()
        Returns the count of values.
        Returns:
        the count of values
      • getArray

        Value[] getArray()
        Returns array with values or null.
        Returns:
        array with values or null
      • iterator

        public java.util.Iterator<Value> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Value>
      • setSharedArgument

        void setSharedArgument​(Value shared)
        Sets value of a shared argument.
        Parameters:
        shared - the shared value
      • getSharedArgument

        Value getSharedArgument()
        Returns value of a shared argument.
        Returns:
        value of a shared argument