Class HllSketchIsLessThan

  • All Implemented Interfaces:
    Predicate<org.apache.datasketches.hll.HllSketch>

    public class HllSketchIsLessThan
    extends uk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>
    An HllSketch is a Predicate that simply checks that the input HllSketch cardinality is less than a control value. Before applying the is less than check, it will round the HllSketch estimate to the nearest long.
    • Constructor Detail

      • HllSketchIsLessThan

        public HllSketchIsLessThan()
      • HllSketchIsLessThan

        public HllSketchIsLessThan​(long controlValue)
      • HllSketchIsLessThan

        public HllSketchIsLessThan​(long controlValue,
                                   boolean orEqualTo)
    • Method Detail

      • getControlValue

        public long getControlValue()
      • setControlValue

        public void setControlValue​(long controlValue)
      • getOrEqualTo

        public boolean getOrEqualTo()
      • setOrEqualTo

        public void setOrEqualTo​(boolean orEqualTo)
      • test

        public boolean test​(org.apache.datasketches.hll.HllSketch input)
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class uk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class uk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>