Package ai.konduit.serving.input.adapter
Interface InputAdapter<INPUT_TYPE,OUTPUT_TYPE>
-
- Type Parameters:
INPUT_TYPE- the input type (usually json objects or buffers coming in off the wire)OUTPUT_TYPE- the output type for use with internal ETL tooling and inference by a verticle
public interface InputAdapter<INPUT_TYPE,OUTPUT_TYPE>An input adapter covers converting input data of 1 type to a suitable output type for use with ETL pipeline components such asTransformProcess. Usually the input type is a rawJsonArrayorBufferthat is then mapped to some input such as an ndarray or ArrowWritableRecordBatch- Author:
- Adam Gibson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OUTPUT_TYPEconvert(INPUT_TYPE input, ConverterArgs parameters, java.util.Map<java.lang.String,java.lang.Object> contextData)Convert the input type to the desired output type given theConverterArgs
-
-
-
Method Detail
-
convert
OUTPUT_TYPE convert(INPUT_TYPE input, ConverterArgs parameters, java.util.Map<java.lang.String,java.lang.Object> contextData) throws java.io.IOException
Convert the input type to the desired output type given theConverterArgs- Parameters:
input- the input to convertparameters- the parameters relevant for conversion of the outputcontextData- the routing context when converting- Returns:
- the desired output
- Throws:
java.io.IOException- I/O exception
-
-