Class GraphPropertyConfig

  • All Implemented Interfaces:
    java.io.Serializable

    @Generated("config_generator.py")
    public class GraphPropertyConfig
    extends AbstractGraphPropertyConfig
    PGX Engine Graph Property Config
    See Also:
    Serialized Form
    • Method Detail

      • parse

        public static GraphPropertyConfig parse​(java.io.InputStream is,
                                                boolean strict,
                                                java.lang.String parentPath)
                                         throws java.io.IOException
        Parses an input stream.
        Parameters:
        is - the input stream
        strict - if true, parses in strict mode
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        the parsed graph config
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • parse

        public static GraphPropertyConfig parse​(java.util.Map<java.lang.String,​java.lang.Object> raw,
                                                boolean strict,
                                                java.lang.String parentPath)
        Parses a raw key/value mapping.
        Parameters:
        raw - the raw key/value mapping to parse
        strict - if true, parses in strict mode
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        the parsed graph config
      • parse

        public static GraphPropertyConfig parse​(java.util.Properties props,
                                                boolean strict)
        Parses a properties file.
        Parameters:
        props - the properties to parse
        strict - if true, parses in strict mode
        Returns:
        the parsed graph config
      • isEmpty

        public boolean isEmpty()
        Checks if it's empty.
        Returns:
        true, if the Map 'values' is empty.
      • hasDefaultValue

        public boolean hasDefaultValue​(GraphPropertyConfig.Field field)
        Checks for default value.
        Parameters:
        field - the field
        Returns:
        true, if value for given field is the default value
      • getValuesWithoutDefaults

        public java.util.Map<GraphPropertyConfig.Field,​java.lang.Object> getValuesWithoutDefaults()
        Gets the values without defaults.
        Returns:
        the values without defaults
      • getLeftoverValues

        public java.util.Map<java.lang.String,​java.lang.Object> getLeftoverValues()
        Gets the values that do not belong to any field.
        Returns:
        the values that do not belong to any field
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(boolean hideSensitiveData)
      • getDimension

        public java.lang.Integer getDimension()
        dimension of property
      • getType

        public PropertyType getType()
        type of property (Note: date is deprecated, use one of local_date / time / timestamp / time_with_timezone / timestamp_with_timezone instead). vertex/edge are place-holders for the type specified in vertex_id_type/edge_id_type fields.
        Specified by:
        getType in class AbstractGraphPropertyConfig
      • getDefault

        public java.lang.Object getDefault()
        default value to be assigned to this property if datasource does not provide it. In case of date type: string is expected to be formatted with yyyy-MM-dd HH:mm:ss. If no default is present (null), non-existent properties will contain default Java types (primitives) or empty string (string) or 01.01.1970 00:00 (date).
      • getColumn

        public java.lang.Object getColumn()
        name or index (starting from 1) of the column holding the property data. If it is not specified, the loader will try to use the property name as column name (for CSV format only)
        Specified by:
        getColumn in class AbstractGraphPropertyConfig
      • getStores

        public java.util.List<java.util.Map> getStores()
        A list of storage identifiers that indicate where this property resides.
        Specified by:
        getStores in class AbstractGraphPropertyConfig
      • getMaxDistinctStringsPerPool

        public java.lang.Integer getMaxDistinctStringsPerPool()
        [only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling. If the limit is reached an exception is thrown. If set to null, the default value from the global PGX configuration will be used.
      • getStringPoolingStrategy

        public StringPoolingStrategy getStringPoolingStrategy()
        which string pooling strategy to use. If set to null, the default value from the global PGX configuration will be used.
      • getAggregate

        public Aggregate getAggregate()
        [currently unsupported] which aggregation function to use, aggregation always happens by vertex key
      • getField

        public java.lang.Object getField()
        name of the JSON field holding the property data. Nesting is denoted by dot - separation. Field names containing dots are possible, in this case the dots need to be escaped using backslashes to resolve ambiguities. Only the exactly specified object are loaded, if they are non existent, the default value is used
      • getGroupKey

        public java.lang.String getGroupKey()
        [currently unsupported] can only be used if the property / key is part of the grouping expression
      • isDropAfterLoading

        public java.lang.Boolean isDropAfterLoading()
        [currently unsupported] indicating helper properties only used for aggregation, which are dropped after loading