Class ElementAggregateOperator
- java.lang.Object
-
- uk.gov.gchq.gaffer.federated.simple.merge.operator.ElementAggregateOperator
-
- All Implemented Interfaces:
BiFunction<Iterable<Element>,Iterable<Element>,Iterable<Element>>,BinaryOperator<Iterable<Element>>
public class ElementAggregateOperator extends Object implements BinaryOperator<Iterable<Element>>
Operator for aggregating two iterables ofElements together, this will ensure all properties for similar elements are merged using theElementAggregatorfrom the schema to perform the actual aggregation.
-
-
Constructor Summary
Constructors Constructor Description ElementAggregateOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Element>apply(Iterable<Element> update, Iterable<Element> state)voidsetSchema(Schema schema)Set the schema to use for aggregating elements of the same group-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
setSchema
public void setSchema(Schema schema)
Set the schema to use for aggregating elements of the same group- Parameters:
schema- The schema.
-
-