Package org.apache.flink.orc.shim
Interface OrcShim<BATCH>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
OrcShimV200,OrcShimV210,OrcShimV230
A shim layer to support orc with different dependents versions of Hive.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBatchWrapper(org.apache.orc.TypeDescription schema, int batchSize) org.apache.orc.RecordReadercreateRecordReader(org.apache.hadoop.conf.Configuration conf, org.apache.orc.TypeDescription schema, int[] selectedFields, List<OrcFilters.Predicate> conjunctPredicates, org.apache.flink.core.fs.Path path, long splitStart, long splitLength) Create orcRecordReaderfrom conf, schema and etc...static OrcShim<org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch>createShim(String hiveVersion) Create shim from hive version.static OrcShim<org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch>Default with orc dependent, we should use v2.3.0.booleanRead the next row batch.
-
Method Details
-
createRecordReader
org.apache.orc.RecordReader createRecordReader(org.apache.hadoop.conf.Configuration conf, org.apache.orc.TypeDescription schema, int[] selectedFields, List<OrcFilters.Predicate> conjunctPredicates, org.apache.flink.core.fs.Path path, long splitStart, long splitLength) throws IOException Create orcRecordReaderfrom conf, schema and etc...- Throws:
IOException
-
createBatchWrapper
OrcVectorizedBatchWrapper<BATCH> createBatchWrapper(org.apache.orc.TypeDescription schema, int batchSize) -
nextBatch
Read the next row batch.- Throws:
IOException
-
defaultShim
Default with orc dependent, we should use v2.3.0. -
createShim
static OrcShim<org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch> createShim(String hiveVersion) Create shim from hive version.
-