Package org.neo4j.gds.beta.generator
Interface PropertyProducer<PROPERTY_SLICE>
-
- All Known Implementing Classes:
PropertyProducer.EmptyPropertyProducer,PropertyProducer.FixedDoubleProducer,PropertyProducer.NodeIdProducer,PropertyProducer.RandomDoubleArrayProducer,PropertyProducer.RandomDoubleProducer,PropertyProducer.RandomEmbeddingProducer,PropertyProducer.RandomLongArrayProducer,PropertyProducer.RandomLongProducer
public interface PropertyProducer<PROPERTY_SLICE>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPropertyProducer.EmptyPropertyProducerstatic classPropertyProducer.FixedDoubleProducerstatic classPropertyProducer.NodeIdProducerstatic classPropertyProducer.RandomDoubleArrayProducerstatic classPropertyProducer.RandomDoubleProducerstatic classPropertyProducer.RandomEmbeddingProducerstatic classPropertyProducer.RandomLongArrayProducerstatic classPropertyProducer.RandomLongProducer
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PropertyProducer<double[]>fixedDouble(java.lang.String propertyName, double value)java.lang.StringgetPropertyName()static PropertyProducer<long[]>nodeIdAsLong(java.lang.String propertyName)org.neo4j.gds.api.nodeproperties.ValueTypepropertyType()static PropertyProducer<double[]>randomDouble(java.lang.String propertyName, double min, double max)static PropertyProducer<double[][]>randomDoubleArray(java.lang.String propertyName, int length, double min, double max)static PropertyProducer<float[][]>randomEmbedding(java.lang.String propertyName, int embeddingSize, float min, float max)static PropertyProducer<long[]>randomLong(java.lang.String propertyName, long min, long max)static PropertyProducer<long[][]>randomLongArray(java.lang.String propertyName, int length, long min, long max)voidsetProperty(long nodeId, PROPERTY_SLICE slice, int index, java.util.Random random)
-
-
-
Method Detail
-
fixedDouble
static PropertyProducer<double[]> fixedDouble(java.lang.String propertyName, double value)
-
randomDouble
static PropertyProducer<double[]> randomDouble(java.lang.String propertyName, double min, double max)
-
randomEmbedding
static PropertyProducer<float[][]> randomEmbedding(java.lang.String propertyName, int embeddingSize, float min, float max)
-
nodeIdAsLong
static PropertyProducer<long[]> nodeIdAsLong(java.lang.String propertyName)
-
randomLong
static PropertyProducer<long[]> randomLong(java.lang.String propertyName, long min, long max)
-
randomLongArray
static PropertyProducer<long[][]> randomLongArray(java.lang.String propertyName, int length, long min, long max)
-
randomDoubleArray
static PropertyProducer<double[][]> randomDoubleArray(java.lang.String propertyName, int length, double min, double max)
-
getPropertyName
java.lang.String getPropertyName()
-
propertyType
org.neo4j.gds.api.nodeproperties.ValueType propertyType()
-
setProperty
void setProperty(long nodeId, PROPERTY_SLICE slice, int index, java.util.Random random)
-
-