Class ElementAggregator

    • Constructor Detail

      • ElementAggregator

        public ElementAggregator()
    • Method Detail

      • apply

        public Element apply​(Element state,
                             Element element)
        Aggregates the element. Note - only the element properties are aggregated. Aggregation requires elements to have the same identifiers and group.
        Parameters:
        state - the other element to aggregate. This is normally the 'state' where the aggregated results will be set.
        element - the element to aggregated
        Returns:
        Element - the aggregated element
      • getComponents

        public List<uk.gov.gchq.koryphe.tuple.binaryoperator.TupleAdaptedBinaryOperator<String,​?>> getComponents()
        Overrides:
        getComponents in class uk.gov.gchq.koryphe.tuple.binaryoperator.TupleAdaptedBinaryOperatorComposite<String>
      • lock

        public void lock()
        Prevent any further changes being carried out.
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class uk.gov.gchq.koryphe.composite.Composite<uk.gov.gchq.koryphe.tuple.binaryoperator.TupleAdaptedBinaryOperator<String,​? extends Object>>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class uk.gov.gchq.koryphe.composite.Composite<uk.gov.gchq.koryphe.tuple.binaryoperator.TupleAdaptedBinaryOperator<String,​? extends Object>>
      • toString

        public String toString()
        Overrides:
        toString in class uk.gov.gchq.koryphe.composite.Composite<uk.gov.gchq.koryphe.tuple.binaryoperator.TupleAdaptedBinaryOperator<String,​? extends Object>>