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>
GeneratesHllSketchEntities 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 HllSketchEntityGeneratorcardinalityPropertyName(String cardinalityPropertyName)HllSketchEntityGeneratorcountProperty(String countProperty)HllSketchEntityGeneratoredgeGroupProperty(String edgeGroupProperty)Function<Object,org.apache.datasketches.hll.HllSketch>getToSketchFunction()HllSketchEntityGeneratorgroup(String group)HllSketchEntityGeneratorpropertiesToCopy(String... propertiesToCopy)Copies the properties from the edge to the new entities.HllSketchEntityGeneratorpropertyToCopy(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:
propertyToCopyin classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
propertiesToCopy
public HllSketchEntityGenerator propertiesToCopy(String... propertiesToCopy)
Description copied from class:CardinalityEntityGeneratorCopies 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:
propertiesToCopyin classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>- Parameters:
propertiesToCopy- the properties to copy from the edge- Returns:
- this
-
group
public HllSketchEntityGenerator group(String group)
- Overrides:
groupin classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
cardinalityPropertyName
public HllSketchEntityGenerator cardinalityPropertyName(String cardinalityPropertyName)
- Overrides:
cardinalityPropertyNamein classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
countProperty
public HllSketchEntityGenerator countProperty(String countProperty)
- Overrides:
countPropertyin classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
edgeGroupProperty
public HllSketchEntityGenerator edgeGroupProperty(String edgeGroupProperty)
- Overrides:
edgeGroupPropertyin classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
getToSketchFunction
public Function<Object,org.apache.datasketches.hll.HllSketch> getToSketchFunction()
- Specified by:
getToSketchFunctionin classCardinalityEntityGenerator<org.apache.datasketches.hll.HllSketch>
-
-