Class PropertyMapping


  • public abstract class PropertyMapping
    extends java.lang.Object
    • Constructor Detail

      • PropertyMapping

        public PropertyMapping()
    • 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 double 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)
      • of

        public static PropertyMapping of​(java.lang.String neoPropertyKey,
                                         double 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,
                                         double defaultValue)
      • 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,
                                         double defaultValue,
                                         Aggregation aggregation)