Class LocalTransformExecutor


  • public class LocalTransformExecutor
    extends Object
    • Constructor Detail

      • LocalTransformExecutor

        public LocalTransformExecutor()
    • Method Detail

      • execute

        public static List<List<Writable>> execute​(List<List<Writable>> inputWritables,
                                                   TransformProcess transformProcess)
        Execute the specified TransformProcess with the given input data
        Note: this method can only be used if the TransformProcess returns non-sequence data. For TransformProcesses that return a sequence, use executeToSequence(List, TransformProcess)
        Parameters:
        inputWritables - Input data to process
        transformProcess - TransformProcess to execute
        Returns:
        Processed data
      • executeToSequence

        public static List<List<List<Writable>>> executeToSequence​(List<List<Writable>> inputWritables,
                                                                   TransformProcess transformProcess)
        Execute the specified TransformProcess with the given input data
        Note: this method can only be used if the TransformProcess starts with non-sequential data, but returns sequence data (after grouping or converting to a sequence as one of the steps)
        Parameters:
        inputWritables - Input data to process
        transformProcess - TransformProcess to execute
        Returns:
        Processed (sequence) data
      • executeSequenceToSeparate

        public static List<List<Writable>> executeSequenceToSeparate​(List<List<List<Writable>>> inputSequence,
                                                                     TransformProcess transformProcess)
        Execute the specified TransformProcess with the given sequence input data
        Note: this method can only be used if the TransformProcess starts with sequence data, but returns non-sequential data (after reducing or converting sequential data to individual examples)
        Parameters:
        inputSequence - Input sequence data to process
        transformProcess - TransformProcess to execute
        Returns:
        Processed (non-sequential) data
      • executeSequenceToSequence

        public static List<List<List<Writable>>> executeSequenceToSequence​(List<List<List<Writable>>> inputSequence,
                                                                           TransformProcess transformProcess)
        Execute the specified TransformProcess with the given sequence input data
        Note: this method can only be used if the TransformProcess starts with sequence data, and also returns sequence data
        Parameters:
        inputSequence - Input sequence data to process
        transformProcess - TransformProcess to execute
        Returns:
        Processed (non-sequential) data
      • convertWritableInputToString

        public static List<List<String>> convertWritableInputToString​(List<List<Writable>> stringInput,
                                                                      Schema schema)
        Convert a string time series to the proper writable set based on the schema. Note that this does not use arrow. This just uses normal writable objects.
        Parameters:
        stringInput - the string input
        schema - the schema to use
        Returns:
        the converted records
      • convertStringInput

        public static List<List<Writable>> convertStringInput​(List<List<String>> stringInput,
                                                              Schema schema)
        Convert a string time series to the proper writable set based on the schema. Note that this does not use arrow. This just uses normal writable objects.
        Parameters:
        stringInput - the string input
        schema - the schema to use
        Returns:
        the converted records
      • convertWritableInputToStringTimeSeries

        public static List<List<List<String>>> convertWritableInputToStringTimeSeries​(List<List<List<Writable>>> stringInput,
                                                                                      Schema schema)
        Convert a string time series to the proper writable set based on the schema. Note that this does not use arrow. This just uses normal writable objects.
        Parameters:
        stringInput - the string input
        schema - the schema to use
        Returns:
        the converted records
      • convertStringInputTimeSeries

        public static List<List<List<Writable>>> convertStringInputTimeSeries​(List<List<List<String>>> stringInput,
                                                                              Schema schema)
        Convert a string time series to the proper writable set based on the schema. Note that this does not use arrow. This just uses normal writable objects.
        Parameters:
        stringInput - the string input
        schema - the schema to use
        Returns:
        the converted records
      • isTryCatch

        public static boolean isTryCatch()
        Returns true if the executor is in try catch mode.
        Returns:
      • executeJoin

        public static List<List<Writable>> executeJoin​(Join join,
                                                       List<List<Writable>> left,
                                                       List<List<Writable>> right)
        Execute a join on the specified data
        Parameters:
        join - Join to execute
        left - Left data for join
        right - Right data for join
        Returns:
        Joined data