Package io.trino.hive.formats.rcfile
Class RcFileReader
java.lang.Object
io.trino.hive.formats.rcfile.RcFileReader
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionRcFileReader(TrinoInputFile inputFile, ColumnEncodingFactory encoding, Map<Integer, Type> readColumns, long offset, long length) -
Method Summary
-
Constructor Details
-
RcFileReader
public RcFileReader(TrinoInputFile inputFile, ColumnEncodingFactory encoding, Map<Integer, Type> readColumns, long offset, long length) throws IOException- Throws:
IOException
-
-
Method Details
-
getVersion
public byte getVersion() -
getMetadata
-
getColumnCount
public int getColumnCount() -
getLength
public long getLength() -
getBytesRead
public long getBytesRead() -
getRowsRead
public long getRowsRead() -
getReadTimeNanos
public long getReadTimeNanos() -
getSync
public io.airlift.slice.Slice getSync() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
advance
- Throws:
IOException
-
readBlock
- Throws:
IOException
-
getFileLocation
-