HyperLogLogPlusIsLessThan
See javadoc - uk.gov.gchq.gaffer.sketches.clearspring.cardinality.predicate.HyperLogLogPlusIsLessThan
Available since Gaffer version 1.0.0
Tests a HyperLogLogPlus cardinality is less than a provided value
Examples
Hyper log log plus is less than 2
Java
JSON
Full JSON
Python
final HyperLogLogPlusIsLessThan function = new HyperLogLogPlusIsLessThan(2);
{
"class" : "HyperLogLogPlusIsLessThan",
"orEqualTo" : false,
"value" : 2
}
{
"class" : "uk.gov.gchq.gaffer.sketches.clearspring.cardinality.predicate.HyperLogLogPlusIsLessThan",
"orEqualTo" : false,
"value" : 2
}
g.HyperLogLogPlusIsLessThan(
value=2,
or_equal_to=False
)
Input type:
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus
Example inputs:
Input Type | Input | Result |
---|---|---|
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus | com.clearspring.analytics.stream.cardinality.HyperLogLogPlus@1d2f5762 | true |
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus | com.clearspring.analytics.stream.cardinality.HyperLogLogPlus@55dcd0e5 | false |
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus | com.clearspring.analytics.stream.cardinality.HyperLogLogPlus@5d671af1 | false |
Hyper log log plus is less than or equal to 2
Java
JSON
Full JSON
Python
final HyperLogLogPlusIsLessThan function = new HyperLogLogPlusIsLessThan(2, true);
{
"class" : "HyperLogLogPlusIsLessThan",
"orEqualTo" : true,
"value" : 2
}
{
"class" : "uk.gov.gchq.gaffer.sketches.clearspring.cardinality.predicate.HyperLogLogPlusIsLessThan",
"orEqualTo" : true,
"value" : 2
}
g.HyperLogLogPlusIsLessThan(
value=2,
or_equal_to=True
)
Input type:
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus
Example inputs:
Input Type | Input | Result |
---|---|---|
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus | com.clearspring.analytics.stream.cardinality.HyperLogLogPlus@1d2f5762 | true |
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus | com.clearspring.analytics.stream.cardinality.HyperLogLogPlus@55dcd0e5 | true |
com.clearspring.analytics.stream.cardinality.HyperLogLogPlus | com.clearspring.analytics.stream.cardinality.HyperLogLogPlus@5d671af1 | false |