Class HllSketchIsLessThan
- java.lang.Object
-
- uk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>
-
- uk.gov.gchq.gaffer.sketches.datasketches.cardinality.predicate.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>AnHllSketchis aPredicatethat simply checks that the inputHllSketchcardinality is less than a control value. Before applying the is less than check, it will round the HllSketch estimate to the nearest long.
-
-
Constructor Summary
Constructors Constructor Description HllSketchIsLessThan()HllSketchIsLessThan(long controlValue)HllSketchIsLessThan(long controlValue, boolean orEqualTo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetControlValue()booleangetOrEqualTo()inthashCode()voidsetControlValue(long controlValue)voidsetOrEqualTo(boolean orEqualTo)booleantest(org.apache.datasketches.hll.HllSketch input)StringtoString()
-
-
-
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:
equalsin classuk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classuk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>
-
-