Interface ConvertTupleDesc<A extends TupleDesc<A>,B extends TupleDesc<B>>

All Known Implementing Classes:
ConvertTupleDesc_F64_F32, ConvertTupleDescPositive_F64_U8, ConvertTupleDescSigned_F64_S8, ConvertTupleDoNothing

public interface ConvertTupleDesc<A extends TupleDesc<A>,B extends TupleDesc<B>>
Convert between different types of TupleDesc.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    convert(A input, B output)
    Converts the input descriptor into the output descriptor type.
    Creates a new instance of the output type.
    Returns the class type of the output descriptor
  • Method Details

    • createOutput

      B createOutput()
      Creates a new instance of the output type.
      Returns:
      New instance of output data type
    • convert

      void convert(A input, B output)
      Converts the input descriptor into the output descriptor type.
      Parameters:
      input - Original input descriptor. Not modified.
      output - Converted output descriptor. Modified.
    • getOutputType

      Class<B> getOutputType()
      Returns the class type of the output descriptor
      Returns:
      Output type