Class OrcSplitReaderUtil

java.lang.Object
org.apache.flink.orc.OrcSplitReaderUtil

public class OrcSplitReaderUtil extends Object
Util for generating OrcSplitReader.
  • Constructor Details

    • OrcSplitReaderUtil

      public OrcSplitReaderUtil()
  • Method Details

    • genPartColumnarRowReader

      public static OrcColumnarRowSplitReader<org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch> genPartColumnarRowReader(String hiveVersion, org.apache.hadoop.conf.Configuration conf, String[] fullFieldNames, org.apache.flink.table.types.DataType[] fullFieldTypes, Map<String,Object> partitionSpec, int[] selectedFields, List<OrcFilters.Predicate> conjunctPredicates, int batchSize, org.apache.flink.core.fs.Path path, long splitStart, long splitLength) throws IOException
      Util for generating partitioned OrcColumnarRowSplitReader.
      Throws:
      IOException
    • getSelectedOrcFields

      public static int[] getSelectedOrcFields(String[] fullFieldNames, int[] selectedFields, List<String> nonPartNames)
    • getNonPartNames

      public static List<String> getNonPartNames(String[] fullFieldNames, Collection<String> partitionKeys)
    • getNonPartNames

      public static List<String> getNonPartNames(String[] fullFieldNames, Map<String,Object> partitionSpec)
    • convertToOrcTypeWithPart

      public static org.apache.orc.TypeDescription convertToOrcTypeWithPart(String[] fullFieldNames, org.apache.flink.table.types.DataType[] fullFieldTypes, Collection<String> partitionKeys)
    • convertToOrcTypeWithPart

      public static org.apache.orc.TypeDescription convertToOrcTypeWithPart(String[] fullFieldNames, org.apache.flink.table.types.logical.LogicalType[] fullFieldTypes, Collection<String> partitionKeys)
    • logicalTypeToOrcType

      public static org.apache.orc.TypeDescription logicalTypeToOrcType(org.apache.flink.table.types.logical.LogicalType type)
      See org.apache.flink.table.catalog.hive.util.HiveTypeUtil.