public interface ORCFileShim
Modifier and Type | Method and Description |
---|---|
Path |
getFilePath()
Get the file path of the ORC file.
|
RecordReaderShim |
getReader(long offset,
long length,
String[] columns,
RecordSettable target)
Get a reader that can read records from the ORC file.
|
RecordTokenType |
getType()
Get the record type of the ORC file.
|
FileMetadata |
loadMetadata()
Load the metadata for the given ORC file.
|
void |
storeMetadata(FileMetadata metadata)
Store the metadata for the given ORC file.
|
Path getFilePath()
RecordTokenType getType() throws IOException
IOException
- thrown if an I/O error occurs accessing the ORC fileFileMetadata loadMetadata() throws IOException
IOException
- thrown if an I/O error occurs accessing the ORC filevoid storeMetadata(FileMetadata metadata) throws IOException
metadata
- metadata for the fileIOException
- thrown if an I/O error occurs accessing the ORC fileRecordReaderShim getReader(long offset, long length, String[] columns, RecordSettable target) throws IOException
offset
- beginning offset in the file to begin reading (start of split)length
- amount of data to read (size of split)columns
- names of the columns to read (empty = all columns)target
- record target for the data read by the readerIOException
- thrown if an I/O error occurs accessing the ORC fileCopyright © 2016 Actian Corporation. All Rights Reserved.