Class HllSketchWithValues
- java.lang.Object
-
- uk.gov.gchq.gaffer.sketches.datasketches.cardinality.serialisation.json.HllSketchWithValues
-
public class HllSketchWithValues extends Object
AHllSketchWithValues
is a wrapper around theHllSketch
object which helps Gaffer deserialise them. Thevalues
list is taken and fed into anIterableToHllSketch
function so that they are applied over JSON. This effectively allows you to create a populatedHllSketch
over JSON.
-
-
Constructor Summary
Constructors Constructor Description HllSketchWithValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
org.apache.datasketches.hll.HllSketch
getHllSketch()
int
getLogK()
List<Object>
getValues()
void
setBytes(byte[] bytes)
void
setLogK(int logK)
void
setValues(List<Object> values)
-
-
-
Method Detail
-
getLogK
public int getLogK()
-
setLogK
public void setLogK(int logK)
-
getBytes
public byte[] getBytes()
-
setBytes
public void setBytes(byte[] bytes)
-
getHllSketch
public org.apache.datasketches.hll.HllSketch getHllSketch() throws IOException
- Throws:
IOException
-
-