Class GraphErrorHandlingConfig


  • @Generated("config_generator.py")
    public class GraphErrorHandlingConfig
    extends AbstractConfig
    PGX Engine Graph Error Handling Config
    • Method Detail

      • parse

        public static GraphErrorHandlingConfig 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 GraphErrorHandlingConfig 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 GraphErrorHandlingConfig 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​(GraphErrorHandlingConfig.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<GraphErrorHandlingConfig.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)
      • getOnMissedPropKey

        public OnMismatch getOnMissedPropKey()
        what to do when missing property key is encountered
      • getOnPropConversion

        public OnMismatch getOnPropConversion()
        what to do when different property type is encountered than specified, but coercion is possible
      • getOnParsingIssue

        public OnMismatch getOnParsingIssue()
        what to do when the data cannot be parsed correctly. If set to silent, log_warn or log_warn_once, will attempt to continue loading. Some parsing issues may not be recoverable and provoke the end of loading.
      • getOnTypeMismatch

        public OnMismatch getOnTypeMismatch()
        what to do when different property type is encountered than specified, but coercion is not possible
      • getOnVectorLengthMismatch

        public OnMismatch getOnVectorLengthMismatch()
        what to do when a vector property has not the correct dimension
      • getOnMissingVertex

        public OnMissingVertex getOnMissingVertex()
        what to do when a source or destination vertex of an edge is not found in a vertex data source.
      • getOnDuplicateEntityId

        public OnMismatch getOnDuplicateEntityId()
        what to do when a duplicate vertex or edge ID is found
      • isEnableVertexIdDuplicateCheck

        public java.lang.Boolean isEnableVertexIdDuplicateCheck()
        if true, checks if there are duplicate vertex IDs or not. If duplicates are found, ignores them or throws an error according to on_duplicate_entity_id. If the check is disabled, loading duplicate IDs cause an undefined behavior (loading might fail, or result in a graph in an invalid state)
      • isEnableEdgeIdDuplicateCheck

        public java.lang.Boolean isEnableEdgeIdDuplicateCheck()
        if true, checks if there are duplicate edge IDs or not. If duplicates are found, ignores them or throws an error according to on_duplicate_entity_id. If the check is disabled, loading duplicate IDs cause an undefined behavior (loading might fail, or result in a graph in an invalid state)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object