Package org.apache.flink.orc
Class OrcSplitReaderUtil
java.lang.Object
org.apache.flink.orc.OrcSplitReaderUtil
Util for generating
OrcSplitReader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.orc.TypeDescriptionconvertToOrcTypeWithPart(String[] fullFieldNames, org.apache.flink.table.types.DataType[] fullFieldTypes, Collection<String> partitionKeys) static org.apache.orc.TypeDescriptionconvertToOrcTypeWithPart(String[] fullFieldNames, org.apache.flink.table.types.logical.LogicalType[] fullFieldTypes, Collection<String> partitionKeys) 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) Util for generating partitionedOrcColumnarRowSplitReader.getNonPartNames(String[] fullFieldNames, Collection<String> partitionKeys) getNonPartNames(String[] fullFieldNames, Map<String, Object> partitionSpec) static int[]getSelectedOrcFields(String[] fullFieldNames, int[] selectedFields, List<String> nonPartNames) static org.apache.orc.TypeDescriptionlogicalTypeToOrcType(org.apache.flink.table.types.logical.LogicalType type) Seeorg.apache.flink.table.catalog.hive.util.HiveTypeUtil.
-
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 IOExceptionUtil for generating partitionedOrcColumnarRowSplitReader.- Throws:
IOException
-
getSelectedOrcFields
-
getNonPartNames
public static List<String> getNonPartNames(String[] fullFieldNames, Collection<String> partitionKeys) -
getNonPartNames
-
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) Seeorg.apache.flink.table.catalog.hive.util.HiveTypeUtil.
-