Class HllSketchEntityGenerator
- java.lang.Object
-
- uk.gov.gchq.gaffer.sketches.CardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
- uk.gov.gchq.gaffer.sketches.datasketches.cardinality.HllSketchEntityGenerator
-
- All Implemented Interfaces:
Function<Iterable<? extends Element>,Iterable<? extends Element>>
,ElementGenerator<Element>
,OneToManyElementGenerator<Element>
public class HllSketchEntityGenerator extends CardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
GeneratesHllSketch
Entities for each end of an Edge.
-
-
Constructor Summary
Constructors Constructor Description HllSketchEntityGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HllSketchEntityGenerator
cardinalityPropertyName(String cardinalityPropertyName)
HllSketchEntityGenerator
countProperty(String countProperty)
HllSketchEntityGenerator
edgeGroupProperty(String edgeGroupProperty)
Function<Object,org.apache.datasketches.hll.HllSketch>
getToSketchFunction()
HllSketchEntityGenerator
group(String group)
HllSketchEntityGenerator
propertiesToCopy(String... propertiesToCopy)
Copies the properties from the edge to the new entities.HllSketchEntityGenerator
propertyToCopy(String propertyToCopy)
-
Methods inherited from class uk.gov.gchq.gaffer.sketches.CardinalityEntityGenerator
_apply, getCardinalityPropertyName, getCountProperty, getEdgeGroupProperty, getGroup, getPropertiesToCopy, getVertexValueConverter, setCardinalityPropertyName, setCountProperty, setEdgeGroupProperty, setGroup, setPropertiesToCopy, setVertexValueConverter
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.data.generator.OneToManyElementGenerator
apply
-
-
-
-
Method Detail
-
propertyToCopy
public HllSketchEntityGenerator propertyToCopy(String propertyToCopy)
- Overrides:
propertyToCopy
in classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
propertiesToCopy
public HllSketchEntityGenerator propertiesToCopy(String... propertiesToCopy)
Description copied from class:CardinalityEntityGenerator
Copies the properties from the edge to the new entities.
IMPORTANT - it does not clone the property values. You could end up with an object being shared between multiple elements.
- Overrides:
propertiesToCopy
in classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
- Parameters:
propertiesToCopy
- the properties to copy from the edge- Returns:
- this
-
group
public HllSketchEntityGenerator group(String group)
- Overrides:
group
in classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
cardinalityPropertyName
public HllSketchEntityGenerator cardinalityPropertyName(String cardinalityPropertyName)
- Overrides:
cardinalityPropertyName
in classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
countProperty
public HllSketchEntityGenerator countProperty(String countProperty)
- Overrides:
countProperty
in classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
edgeGroupProperty
public HllSketchEntityGenerator edgeGroupProperty(String edgeGroupProperty)
- Overrides:
edgeGroupProperty
in classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
getToSketchFunction
public Function<Object,org.apache.datasketches.hll.HllSketch> getToSketchFunction()
- Specified by:
getToSketchFunction
in classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
-