Class MultiAccumulate

    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class Accumulate
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class Accumulate
        Throws:
        java.io.IOException
      • init

        public java.lang.Object init​(java.lang.Object workingMemoryContext,
                                     java.lang.Object accContext,
                                     java.lang.Object funcContext,
                                     BaseTuple leftTuple,
                                     ValueResolver valueResolver)
        Description copied from class: Accumulate
        Executes the initialization block of code
        Specified by:
        init in class Accumulate
      • accumulate

        public java.lang.Object accumulate​(java.lang.Object workingMemoryContext,
                                           java.lang.Object context,
                                           BaseTuple match,
                                           org.kie.api.runtime.rule.FactHandle handle,
                                           ValueResolver valueResolver)
        Description copied from class: Accumulate
        Executes the accumulate (action) code for the given fact handle
        Specified by:
        accumulate in class Accumulate
      • accumulate

        public java.lang.Object accumulate​(java.lang.Object workingMemoryContext,
                                           BaseTuple match,
                                           org.kie.api.runtime.rule.FactHandle childHandle,
                                           java.lang.Object groupByContext,
                                           java.lang.Object tupleList,
                                           ValueResolver valueResolver)
        Specified by:
        accumulate in class Accumulate
      • tryReverse

        public boolean tryReverse​(java.lang.Object workingMemoryContext,
                                  java.lang.Object context,
                                  BaseTuple leftTuple,
                                  org.kie.api.runtime.rule.FactHandle handle,
                                  BaseTuple match,
                                  ValueResolver valueResolver)
        Description copied from class: Accumulate
        Executes the reverse (action) code for the given fact handle
        Specified by:
        tryReverse in class Accumulate
      • supportsReverse

        public boolean supportsReverse()
        Description copied from class: Accumulate
        Returns true if this accumulate supports reverse
        Specified by:
        supportsReverse in class Accumulate
      • getResult

        public java.lang.Object[] getResult​(java.lang.Object workingMemoryContext,
                                            java.lang.Object context,
                                            BaseTuple leftTuple,
                                            ValueResolver valueResolver)
        Description copied from class: Accumulate
        Gets the result of the accumulation
        Specified by:
        getResult in class Accumulate
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object