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 as TransformProcess . Usually the input type is a raw JsonArray or Buffer that is then mapped to some input such as an ndarray or ArrowWritableRecordBatch
    Author:
    Adam Gibson
    • 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 the ConverterArgs
        Parameters:
        input - the input to convert
        parameters - the parameters relevant for conversion of the output
        contextData - the routing context when converting
        Returns:
        the desired output
        Throws:
        java.io.IOException - I/O exception