public abstract class OrcSplitReader<T,BATCH> extends Object implements Closeable
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
nextRow |
protected OrcVectorizedBatchWrapper<BATCH> |
rowBatchWrapper |
| 构造器和说明 |
|---|
OrcSplitReader(OrcShim<BATCH> shim,
org.apache.hadoop.conf.Configuration conf,
org.apache.orc.TypeDescription schema,
int[] selectedFields,
List<OrcFilters.Predicate> conjunctPredicates,
int batchSize,
org.apache.flink.core.fs.Path path,
long splitStart,
long splitLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected abstract int |
fillRows()
Fills an ORC batch into an array of Row.
|
org.apache.orc.RecordReader |
getRecordReader() |
abstract T |
nextRecord(T reuse)
Reads the next record from the input.
|
boolean |
reachedEnd()
Method used to check if the end of the input is reached.
|
void |
seekToRow(long rowCount)
Seek to a particular row number.
|
protected final OrcVectorizedBatchWrapper<BATCH> rowBatchWrapper
protected int nextRow
public OrcSplitReader(OrcShim<BATCH> shim, org.apache.hadoop.conf.Configuration conf, org.apache.orc.TypeDescription schema, int[] selectedFields, List<OrcFilters.Predicate> conjunctPredicates, int batchSize, org.apache.flink.core.fs.Path path, long splitStart, long splitLength) throws IOException
IOExceptionpublic void seekToRow(long rowCount)
throws IOException
IOException@VisibleForTesting public org.apache.orc.RecordReader getRecordReader()
public boolean reachedEnd()
throws IOException
IOException - Thrown, if an I/O error occurred.protected abstract int fillRows()
public abstract T nextRecord(T reuse) throws IOException
reuse - Object that may be reused.IOException - Thrown, if an I/O error occurred.public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.