Interface AvaticaParameterConverter

All Known Implementing Classes:
BinaryAvaticaParameterConverter, BinaryViewAvaticaParameterConverter, BoolAvaticaParameterConverter, DateAvaticaParameterConverter, DecimalAvaticaParameterConverter, DurationAvaticaParameterConverter, FixedSizeBinaryAvaticaParameterConverter, FixedSizeListAvaticaParameterConverter, FloatingPointAvaticaParameterConverter, IntAvaticaParameterConverter, IntervalAvaticaParameterConverter, LargeBinaryAvaticaParameterConverter, LargeListAvaticaParameterConverter, LargeUtf8AvaticaParameterConverter, ListAvaticaParameterConverter, MapAvaticaParameterConverter, NullAvaticaParameterConverter, StructAvaticaParameterConverter, TimeAvaticaParameterConverter, TimestampAvaticaParameterConverter, UnionAvaticaParameterConverter, Utf8AvaticaParameterConverter, Utf8ViewAvaticaParameterConverter

public interface AvaticaParameterConverter
Interface for a class in charge of converting between AvaticaParameters and TypedValues and Arrow.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    bindParameter(FieldVector vector, org.apache.calcite.avatica.remote.TypedValue typedValue, int index)
    Bind a TypedValue to a FieldVector at the given index.
    org.apache.calcite.avatica.AvaticaParameter
    Create an AvaticaParameter from the given Field.
  • Method Details

    • bindParameter

      boolean bindParameter(FieldVector vector, org.apache.calcite.avatica.remote.TypedValue typedValue, int index)
      Bind a TypedValue to a FieldVector at the given index.
      Parameters:
      vector - FieldVector that the parameter should be bound to.
      typedValue - TypedValue to bind as a parameter.
      index - Vector index (0-indexed) that the TypedValue should be bound to.
      Returns:
      Whether the value was set successfully.
    • createParameter

      org.apache.calcite.avatica.AvaticaParameter createParameter(Field field)
      Create an AvaticaParameter from the given Field.
      Parameters:
      field - Arrow Field to generate an AvaticaParameter from.