Class RepairAttributeDataType


  • public final class RepairAttributeDataType
    extends java.lang.Object
    Tries to automatically guess the data type of all XES attributes and updates the log accordingly.

    PLEASE NOTE: This filter will update the original XLog instead of creating a new XLog, to be able to process huge logs without exhausting the available memory.

    Author:
    F. Mannhardt
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doRepairEventAttributes​(org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, java.lang.Iterable<? extends java.text.DateFormat> dateFormats)  
      void doRepairEventAttributes​(org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, java.lang.Iterable<? extends java.text.DateFormat> dateFormats, RepairAttributeDataType.ReviewCallback reviewCallback)  
      void doRepairTraceAttributes​(org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, java.lang.Iterable<? extends java.text.DateFormat> dateFormats)  
      void doRepairTraceAttributes​(org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, java.lang.Iterable<? extends java.text.DateFormat> dateFormats, RepairAttributeDataType.ReviewCallback reviewCallback)  
      static java.util.Map<java.lang.String,​java.lang.Class<? extends org.deckfour.xes.model.XAttribute>> queryCustomDataTypes​(org.processmining.contexts.uitopia.UIPluginContext context, java.util.Map<java.lang.String,​java.lang.Class<? extends org.deckfour.xes.model.XAttribute>> attributeDataType)  
      static java.lang.Iterable<? extends java.text.DateFormat> queryDateFormats​(org.processmining.contexts.uitopia.UIPluginContext context)
      Shows a wizard that allows the user to specify an additional custom date format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepairAttributeDataType

        public RepairAttributeDataType()
    • Method Detail

      • doRepairEventAttributes

        public void doRepairEventAttributes​(org.processmining.framework.plugin.PluginContext context,
                                            org.deckfour.xes.model.XLog log,
                                            java.lang.Iterable<? extends java.text.DateFormat> dateFormats)
      • doRepairEventAttributes

        public void doRepairEventAttributes​(org.processmining.framework.plugin.PluginContext context,
                                            org.deckfour.xes.model.XLog log,
                                            java.lang.Iterable<? extends java.text.DateFormat> dateFormats,
                                            RepairAttributeDataType.ReviewCallback reviewCallback)
      • doRepairTraceAttributes

        public void doRepairTraceAttributes​(org.processmining.framework.plugin.PluginContext context,
                                            org.deckfour.xes.model.XLog log,
                                            java.lang.Iterable<? extends java.text.DateFormat> dateFormats)
      • doRepairTraceAttributes

        public void doRepairTraceAttributes​(org.processmining.framework.plugin.PluginContext context,
                                            org.deckfour.xes.model.XLog log,
                                            java.lang.Iterable<? extends java.text.DateFormat> dateFormats,
                                            RepairAttributeDataType.ReviewCallback reviewCallback)
      • queryDateFormats

        public static java.lang.Iterable<? extends java.text.DateFormat> queryDateFormats​(org.processmining.contexts.uitopia.UIPluginContext context)
        Shows a wizard that allows the user to specify an additional custom date format.
        Parameters:
        context -
        Returns:
        a set of DateFormats including the user specified format
      • queryCustomDataTypes

        public static java.util.Map<java.lang.String,​java.lang.Class<? extends org.deckfour.xes.model.XAttribute>> queryCustomDataTypes​(org.processmining.contexts.uitopia.UIPluginContext context,
                                                                                                                                              java.util.Map<java.lang.String,​java.lang.Class<? extends org.deckfour.xes.model.XAttribute>> attributeDataType)
        Parameters:
        context -
        attributeDataType -
        Returns: