public class OrcFileFormatProxy extends Object implements FileFormatProxy
Constructor and Description |
---|
OrcFileFormatProxy() |
Modifier and Type | Method and Description |
---|---|
Metastore.SplitInfos |
applySargToMetadata(org.apache.hadoop.hive.ql.io.sarg.SearchArgument sarg,
ByteBuffer fileMetadata)
Applies SARG to file metadata, and produces some result for this file.
|
ByteBuffer[] |
getAddedColumnsToCache() |
ByteBuffer[][] |
getAddedValuesToCache(List<ByteBuffer> metadata) |
ByteBuffer |
getMetadataToCache(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
ByteBuffer[] addedVals) |
public Metastore.SplitInfos applySargToMetadata(org.apache.hadoop.hive.ql.io.sarg.SearchArgument sarg, ByteBuffer fileMetadata) throws IOException
FileFormatProxy
applySargToMetadata
in interface FileFormatProxy
sarg
- SARGfileMetadata
- File metadata from metastore cache.IOException
public ByteBuffer[] getAddedColumnsToCache()
getAddedColumnsToCache
in interface FileFormatProxy
public ByteBuffer[][] getAddedValuesToCache(List<ByteBuffer> metadata)
getAddedValuesToCache
in interface FileFormatProxy
metadata
- File metadatas.public ByteBuffer getMetadataToCache(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, ByteBuffer[] addedVals) throws IOException
getMetadataToCache
in interface FileFormatProxy
fs
- The filesystem of the file.path
- The file path.addedVals
- Output parameter; additional column values for columns returned by
getAddedColumnsToCache to cache in MS.IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.