@Override public void put(final OrcInputFormat.FooterCacheKey cacheKey, final OrcTail orcTail) throws IOException { put(cacheKey.getPath(), orcTail); } }
@Override public void put(final OrcInputFormat.FooterCacheKey cacheKey, final OrcTail orcTail) throws IOException { put(cacheKey.getPath(), orcTail); } }
private boolean processBbResult( ByteBuffer bb, int ix, HdfsFileStatusWithId file, OrcTail[] result) throws IOException { if (bb == null) { return true; } result[ix] = createOrcTailFromMs(file, bb); if (result[ix] == null) { return false; } localCache.put(file.getFileStatus().getPath(), result[ix]); return true; }
private boolean processBbResult( ByteBuffer bb, int ix, HdfsFileStatusWithId file, OrcTail[] result) throws IOException { if (bb == null) return true; result[ix] = createOrcTailFromMs(file, bb); if (result[ix] == null) { return false; } localCache.put(file.getFileStatus().getPath(), result[ix]); return true; }
@Override public void put(OrcInputFormat.FooterCacheKey key, OrcTail orcTail) throws IOException { localCache.put(key.getPath(), orcTail); if (key.getFileId() != null) { try { externalCacheSrc.getCache(conf).putFileMetadata(Lists.newArrayList(key.getFileId()), Lists.newArrayList(orcTail.getSerializedTail())); } catch (HiveException e) { throw new IOException(e); } } }
private void processPpdResult(MetadataPpdResult mpr, HdfsFileStatusWithId file, int ix, OrcTail[] result, ByteBuffer[] ppdResult) throws IOException { if (mpr == null) { return; // This file is unknown to metastore. } ppdResult[ix] = mpr.isSetIncludeBitset() ? mpr.bufferForIncludeBitset() : NO_SPLIT_AFTER_PPD; if (mpr.isSetMetadata()) { result[ix] = createOrcTailFromMs(file, mpr.bufferForMetadata()); if (result[ix] != null) { localCache.put(file.getFileStatus().getPath(), result[ix]); } } }
private void processPpdResult(MetadataPpdResult mpr, HdfsFileStatusWithId file, int ix, OrcTail[] result, ByteBuffer[] ppdResult) throws IOException { if (mpr == null) return; // This file is unknown to metastore. ppdResult[ix] = mpr.isSetIncludeBitset() ? mpr.bufferForIncludeBitset() : NO_SPLIT_AFTER_PPD; if (mpr.isSetMetadata()) { result[ix] = createOrcTailFromMs(file, mpr.bufferForMetadata()); if (result[ix] != null) { localCache.put(file.getFileStatus().getPath(), result[ix]); } } }
@Override public void put(OrcInputFormat.FooterCacheKey key, OrcTail orcTail) throws IOException { localCache.put(key.getPath(), orcTail); if (key.getFileId() != null) { try { externalCacheSrc.getCache(conf).putFileMetadata(Lists.newArrayList(key.getFileId()), Lists.newArrayList(orcTail.getSerializedTail())); } catch (HiveException e) { throw new IOException(e); } } }