Package org.neo4j.gds
Class PropertyMapping
- java.lang.Object
-
- org.neo4j.gds.PropertyMapping
-
public abstract class PropertyMapping extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_VALUE_KEYstatic java.lang.StringPROPERTY_KEY
-
Constructor Summary
Constructors Constructor Description PropertyMapping()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Aggregationaggregation()DefaultValuedefaultValue()booleanexists()static PropertyMappingfromObject(java.lang.String propertyKey, java.lang.Object stringOrMap)booleanhasValidName()@Nullable java.lang.StringneoPropertyKey()property name in the graph (a:Node {`propertyKey`:xyz})static PropertyMappingof(java.lang.String propertyKey)static PropertyMappingof(java.lang.String neoPropertyKey, java.lang.Object defaultValue)Creates a PropertyMapping.static PropertyMappingof(java.lang.String propertyKey, java.lang.String neoPropertyKey, java.lang.Object defaultValue)static PropertyMappingof(java.lang.String propertyKey, java.lang.String neoPropertyKey, DefaultValue defaultValue, Aggregation aggregation)static PropertyMappingof(java.lang.String propertyKey, java.lang.String neoPropertyKey, Aggregation aggregation)static PropertyMappingof(java.lang.String propertyKey, DefaultValue defaultValue, Aggregation aggregation)static PropertyMappingof(java.lang.String propertyKey, Aggregation aggregation)abstract @Nullable java.lang.StringpropertyKey()property key in the result map Graph.nodeProperties(`propertyKey`)PropertyMappingsetNonDefaultAggregation(Aggregation aggregation)java.util.Map.Entry<java.lang.String,java.lang.Object>toObject(boolean includeAggregation)voidvalidateProperties()
-
-
-
Field Detail
-
PROPERTY_KEY
public static final java.lang.String PROPERTY_KEY
- See Also:
- Constant Field Values
-
DEFAULT_VALUE_KEY
public static final java.lang.String DEFAULT_VALUE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
propertyKey
@Nullable public abstract @Nullable java.lang.String propertyKey()
property key in the result map Graph.nodeProperties(`propertyKey`)
-
neoPropertyKey
@Default @Nullable public @Nullable java.lang.String neoPropertyKey()
property name in the graph (a:Node {`propertyKey`:xyz})
-
defaultValue
@Default public DefaultValue defaultValue()
-
aggregation
@Default public Aggregation aggregation()
-
validateProperties
@Check public void validateProperties()
-
fromObject
public static PropertyMapping fromObject(java.lang.String propertyKey, java.lang.Object stringOrMap)
-
hasValidName
public boolean hasValidName()
-
exists
public boolean exists()
-
toObject
public java.util.Map.Entry<java.lang.String,java.lang.Object> toObject(boolean includeAggregation)
-
setNonDefaultAggregation
public PropertyMapping setNonDefaultAggregation(Aggregation aggregation)
-
of
public static PropertyMapping of(java.lang.String propertyKey)
-
of
public static PropertyMapping of(java.lang.String neoPropertyKey, java.lang.Object defaultValue)
Creates a PropertyMapping. The given property key is also used for internal reference.
-
of
public static PropertyMapping of(java.lang.String propertyKey, java.lang.String neoPropertyKey, java.lang.Object defaultValue)
-
of
public static PropertyMapping of(java.lang.String propertyKey, DefaultValue defaultValue, Aggregation aggregation)
-
of
public static PropertyMapping of(java.lang.String propertyKey, Aggregation aggregation)
-
of
public static PropertyMapping of(java.lang.String propertyKey, java.lang.String neoPropertyKey, Aggregation aggregation)
-
of
public static PropertyMapping of(java.lang.String propertyKey, java.lang.String neoPropertyKey, DefaultValue defaultValue, Aggregation aggregation)
-
-