Search in sources :

Example 1 with LlapOrcCacheLoader

use of org.apache.hadoop.hive.llap.io.encoded.LlapOrcCacheLoader in project hive by apache.

the class LlapCacheMetadataSerializer method loadData.

private void loadData(LlapDaemonProtocolProtos.CacheEntry ce) throws IOException {
    CacheTag cacheTag = decodeCacheTag(ce.getCacheTag());
    DiskRangeList ranges = decodeRanges(ce.getRangesList());
    Object fileKey = decodeFileKey(ce.getFileKey());
    try (LlapOrcCacheLoader llr = new LlapOrcCacheLoader(new Path(ce.getFilePath()), fileKey, conf, cache, metadataCache, cacheTag, tracePool)) {
        llr.init();
        llr.loadFileFooter();
        llr.loadRanges(ranges);
    }
}
Also used : Path(org.apache.hadoop.fs.Path) DiskRangeList(org.apache.hadoop.hive.common.io.DiskRangeList) CacheTag(org.apache.hadoop.hive.common.io.CacheTag) LlapOrcCacheLoader(org.apache.hadoop.hive.llap.io.encoded.LlapOrcCacheLoader)

Aggregations

Path (org.apache.hadoop.fs.Path)1 CacheTag (org.apache.hadoop.hive.common.io.CacheTag)1 DiskRangeList (org.apache.hadoop.hive.common.io.DiskRangeList)1 LlapOrcCacheLoader (org.apache.hadoop.hive.llap.io.encoded.LlapOrcCacheLoader)1