Package io.trino.plugin.hive.rcfile
Class HdfsRcFileDataSource
- java.lang.Object
-
- io.trino.plugin.hive.rcfile.HdfsRcFileDataSource
-
- All Implemented Interfaces:
RcFileDataSource,Closeable,AutoCloseable
public class HdfsRcFileDataSource extends Object implements RcFileDataSource
-
-
Constructor Summary
Constructors Constructor Description HdfsRcFileDataSource(String path, org.apache.hadoop.fs.FSDataInputStream inputStream, long size, FileFormatDataSourceStats stats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()RcFileDataSourceIdgetId()longgetReadBytes()longgetReadTimeNanos()longgetSize()voidreadFully(long position, byte[] buffer, int bufferOffset, int bufferLength)StringtoString()
-
-
-
Constructor Detail
-
HdfsRcFileDataSource
public HdfsRcFileDataSource(String path, org.apache.hadoop.fs.FSDataInputStream inputStream, long size, FileFormatDataSourceStats stats)
-
-
Method Detail
-
getId
public RcFileDataSourceId getId()
- Specified by:
getIdin interfaceRcFileDataSource
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getReadBytes
public long getReadBytes()
- Specified by:
getReadBytesin interfaceRcFileDataSource
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceRcFileDataSource
-
getSize
public long getSize()
- Specified by:
getSizein interfaceRcFileDataSource
-
readFully
public void readFully(long position, byte[] buffer, int bufferOffset, int bufferLength) throws IOException- Specified by:
readFullyin interfaceRcFileDataSource- Throws:
IOException
-
-