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>
AnHllSketch
is aPredicate
that simply checks that the inputHllSketch
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 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 boolean
equals(Object obj)
long
getControlValue()
boolean
getOrEqualTo()
int
hashCode()
void
setControlValue(long controlValue)
void
setOrEqualTo(boolean orEqualTo)
boolean
test(org.apache.datasketches.hll.HllSketch input)
String
toString()
-
-
-
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 classuk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classuk.gov.gchq.koryphe.predicate.KoryphePredicate<org.apache.datasketches.hll.HllSketch>
-
-