Class HllSketchWithValues
- java.lang.Object
-
- uk.gov.gchq.gaffer.sketches.datasketches.cardinality.serialisation.json.HllSketchWithValues
-
public class HllSketchWithValues extends Object
AHllSketchWithValuesis a wrapper around theHllSketchobject which helps Gaffer deserialise them. Thevalueslist is taken and fed into anIterableToHllSketchfunction so that they are applied over JSON. This effectively allows you to create a populatedHllSketchover 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.HllSketchgetHllSketch()intgetLogK()List<Object>getValues()voidsetBytes(byte[] bytes)voidsetLogK(int logK)voidsetValues(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
-
-