Class ElementJoinComparator

  • All Implemented Interfaces:
    Predicate<uk.gov.gchq.koryphe.tuple.n.Tuple2<Element,​Element>>

    public class ElementJoinComparator
    extends uk.gov.gchq.koryphe.tuple.predicate.KoryphePredicate2<Element,​Element>
    An ElementJoinComparator is a KoryphePredicate2 that is used to compare if two Elements are equal. Optional GroupBy properties can be set, and will then be used within the comparison also.
    • Constructor Detail

      • ElementJoinComparator

        public ElementJoinComparator()
      • ElementJoinComparator

        public ElementJoinComparator​(Set<String> groupByProperties)
      • ElementJoinComparator

        public ElementJoinComparator​(String... groupByProperties)
    • Method Detail

      • getGroupByProperties

        public Set<String> getGroupByProperties()
      • setGroupByProperties

        public void setGroupByProperties​(Set<String> groupByProperties)
      • test

        public boolean test​(Element element,
                            Element element2)
        Specified by:
        test in class uk.gov.gchq.koryphe.tuple.predicate.KoryphePredicate2<Element,​Element>