public class HllSketchIsLessThan
extends uk.gov.gchq.koryphe.predicate.KoryphePredicate<com.yahoo.sketches.hll.HllSketch>
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 and Description |
---|
HllSketchIsLessThan() |
HllSketchIsLessThan(long controlValue) |
HllSketchIsLessThan(long controlValue,
boolean orEqualTo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getControlValue() |
boolean |
getOrEqualTo() |
int |
hashCode() |
void |
setControlValue(long controlValue) |
void |
setOrEqualTo(boolean orEqualTo) |
boolean |
test(com.yahoo.sketches.hll.HllSketch input) |
String |
toString() |
public HllSketchIsLessThan()
public HllSketchIsLessThan(long controlValue)
public HllSketchIsLessThan(long controlValue, boolean orEqualTo)
public long getControlValue()
public void setControlValue(long controlValue)
public boolean getOrEqualTo()
public void setOrEqualTo(boolean orEqualTo)
public boolean test(com.yahoo.sketches.hll.HllSketch input)
public boolean equals(Object obj)
equals
in class uk.gov.gchq.koryphe.predicate.KoryphePredicate<com.yahoo.sketches.hll.HllSketch>
public int hashCode()
hashCode
in class uk.gov.gchq.koryphe.predicate.KoryphePredicate<com.yahoo.sketches.hll.HllSketch>
Copyright © 2022. All rights reserved.