Class ConvertUtils

java.lang.Object
org.apache.arrow.driver.jdbc.utils.ConvertUtils

public final class ConvertUtils extends Object
Convert objects between Arrow and Avatica.
  • Method Details

    • convertArrowFieldsToColumnMetaDataList

      public static List<org.apache.calcite.avatica.ColumnMetaData> convertArrowFieldsToColumnMetaDataList(List<Field> fields)
      Convert Fields To Column MetaData List functions.
      Parameters:
      fields - list of Field.
      Returns:
      list of ColumnMetaData.
    • setOnColumnMetaDataBuilder

      public static void setOnColumnMetaDataBuilder(org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builder, Map<String,String> metadataMap)
      Set on Column MetaData Builder.
      Parameters:
      builder - Common.ColumnMetaData.Builder
      metadataMap - Map
    • convertArrowFieldsToAvaticaParameters

      public static List<org.apache.calcite.avatica.AvaticaParameter> convertArrowFieldsToAvaticaParameters(List<Field> fields)
      Convert Fields To Avatica Parameters.
      Parameters:
      fields - list of Field.
      Returns:
      list of AvaticaParameter.