public class TypeInfoToSchema extends Object
| Constructor and Description |
|---|
TypeInfoToSchema() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.avro.Schema |
convert(List<String> columnNames,
List<org.apache.hadoop.hive.serde2.typeinfo.TypeInfo> columnTypes,
List<String> columnComments,
String namespace,
String name,
String doc)
Converts Hive schema to avro schema
|
public org.apache.avro.Schema convert(List<String> columnNames, List<org.apache.hadoop.hive.serde2.typeinfo.TypeInfo> columnTypes, List<String> columnComments, String namespace, String name, String doc)
columnNames - Names of the hive columnscolumnTypes - Hive Column typesnamespace - Namespace of Avro schemaname - Avro schema namedoc - Avro schema docCopyright © 2013-2023. All Rights Reserved.