Class CleanseFunctionResult


  • public class CleanseFunctionResult
    extends java.lang.Object
    • Constructor Detail

      • CleanseFunctionResult

        public CleanseFunctionResult()
        Constructor.
    • Method Detail

      • getOutputParam

        public CleanseFunctionOutputParam getOutputParam​(java.lang.String portName)
        Gets output param by port name.
        Parameters:
        portName - the port name
        Returns:
        param or null, if not found
      • getOutputParams

        public java.util.Collection<CleanseFunctionOutputParam> getOutputParams()
        Gets output params as a collection.
        Returns:
        params collection
      • putOutputParam

        public void putOutputParam​(CleanseFunctionOutputParam param)
        Puts an output param to output map.
        Parameters:
        param - the param value
      • hasOutputParams

        public boolean hasOutputParams()
        Returns true, if this result has some output params set.
        Returns:
        true, if this result has some output params set
      • getOutputPorts

        public java.util.Collection<java.lang.String> getOutputPorts()
        Gets output port names.
        Returns:
        the names
      • getErrors

        public java.util.List<DataQualityError> getErrors()
        Gets all collected errors.
        Returns:
        the errors
      • addError

        public void addError​(DataQualityError error)
        Adds an error to the error collection.
        Parameters:
        error - the error to add
      • addErrors

        public void addErrors​(java.util.Collection<DataQualityError> errors)
        Adds errors to the error collection.
        Parameters:
        errors - the errors to add
      • hasErrors

        public boolean hasErrors()
        Returns true, if the result has collected some errors.
        Returns:
        true, if the result has collected some errors
      • getSpots

        public java.util.List<DataQualitySpot> getSpots()
        Gets failed paths collection at whole.
        Returns:
        failed paths collection
      • addSpot

        public void addSpot​(DataQualitySpot failure)
        Adds a failure/problem spot as object.
        Parameters:
        failure - the failure to add
      • addSpots

        public void addSpots​(java.util.Collection<DataQualitySpot> failures)
        Adds failure/problem spots to the spots collection.
        Parameters:
        failures - the spots to add
      • hasSpots

        public boolean hasSpots()
        Returns true, if this result contains failed validation paths.
        Returns:
        true, if this result contains failed validation paths