Class ConvertUtils
java.lang.Object
org.apache.arrow.driver.jdbc.utils.ConvertUtils
Convert objects between Arrow and Avatica.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.apache.calcite.avatica.AvaticaParameter>
Convert Fields To Avatica Parameters.static List<org.apache.calcite.avatica.ColumnMetaData>
Convert Fields To Column MetaData List functions.static void
setOnColumnMetaDataBuilder
(org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builder, Map<String, String> metadataMap) Set on Column MetaData Builder.
-
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 ofField
.- 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 ofField
.- Returns:
- list of
AvaticaParameter
.
-