Package io.trino.plugin.hive.orc
Class HdfsOrcDataSource
- java.lang.Object
-
- io.trino.orc.AbstractOrcDataSource
-
- io.trino.plugin.hive.orc.HdfsOrcDataSource
-
- All Implemented Interfaces:
OrcDataSource,Closeable,AutoCloseable
public class HdfsOrcDataSource extends AbstractOrcDataSource
-
-
Constructor Summary
Constructors Constructor Description HdfsOrcDataSource(OrcDataSourceId id, long size, OrcReaderOptions options, org.apache.hadoop.fs.FSDataInputStream inputStream, FileFormatDataSourceStats stats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidreadInternal(long position, byte[] buffer, int bufferOffset, int bufferLength)io.airlift.slice.SlicereadTail(int length)-
Methods inherited from class io.trino.orc.AbstractOrcDataSource
getEstimatedSize, getId, getReadBytes, getReadTimeNanos, getRetainedSize, readFully, readFully, toString
-
-
-
-
Constructor Detail
-
HdfsOrcDataSource
public HdfsOrcDataSource(OrcDataSourceId id, long size, OrcReaderOptions options, org.apache.hadoop.fs.FSDataInputStream inputStream, FileFormatDataSourceStats stats)
-
-
Method Detail
-
close
public void close() throws IOException- Throws:
IOException
-
readTail
public io.airlift.slice.Slice readTail(int length) throws IOException- Specified by:
readTailin interfaceOrcDataSource- Overrides:
readTailin classAbstractOrcDataSource- Throws:
IOException
-
readInternal
protected void readInternal(long position, byte[] buffer, int bufferOffset, int bufferLength)- Specified by:
readInternalin classAbstractOrcDataSource
-
-