public class TypeConversion
extends java.lang.Object
Constructor and Description |
---|
TypeConversion() |
Modifier and Type | Method and Description |
---|---|
Schema |
fromOrc(org.apache.orc.TypeDescription schema,
ColumnIdMap columnIds)
Convert an ORC schema to an Iceberg schema.
|
static org.apache.orc.TypeDescription |
toOrc(Schema schema,
ColumnIdMap columnIds)
Convert a given Iceberg schema to ORC.
|
public static org.apache.orc.TypeDescription toOrc(Schema schema, ColumnIdMap columnIds)
schema
- the Iceberg schema to convertcolumnIds
- an output with the column idspublic Schema fromOrc(org.apache.orc.TypeDescription schema, ColumnIdMap columnIds)
schema
- the ORC schemacolumnIds
- the column ids