Package org.datavec.local.transforms
Class LocalTransformExecutor
- java.lang.Object
-
- org.datavec.local.transforms.LocalTransformExecutor
-
public class LocalTransformExecutor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOG_ERROR_PROPERTY
-
Constructor Summary
Constructors Constructor Description LocalTransformExecutor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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.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.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.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.static List<List<Writable>>executeJoin(Join join, List<List<Writable>> left, List<List<Writable>> right)Execute a join on the specified datastatic 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)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 datastatic 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 returnssequence data (after grouping or converting to a sequence as one of the steps)static booleanisTryCatch()Returns true if the executor is in try catch mode.
-
-
-
Field Detail
-
LOG_ERROR_PROPERTY
public static final String LOG_ERROR_PROPERTY
- See Also:
- Constant Field Values
-
-
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, useexecuteToSequence(List, TransformProcess)- Parameters:
inputWritables- Input data to processtransformProcess- 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 returnssequence data (after grouping or converting to a sequence as one of the steps)- Parameters:
inputWritables- Input data to processtransformProcess- 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 processtransformProcess- 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 processtransformProcess- 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 inputschema- 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 inputschema- 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 inputschema- 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 inputschema- the schema to use- Returns:
- the converted records
-
isTryCatch
public static boolean isTryCatch()
Returns true if the executor is in try catch mode.- Returns:
-
-