Package org.apache.flink.orc
Class OrcSplitReaderUtil
- java.lang.Object
-
- org.apache.flink.orc.OrcSplitReaderUtil
-
public class OrcSplitReaderUtil extends Object
Util for generatingOrcSplitReader.
-
-
Constructor Summary
Constructors Constructor Description OrcSplitReaderUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.static List<String>getNonPartNames(String[] fullFieldNames, Collection<String> partitionKeys)static List<String>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.
-
-
-
Method Detail
-
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 partitionedOrcColumnarRowSplitReader.- 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)
Seeorg.apache.flink.table.catalog.hive.util.HiveTypeUtil.
-
-