FileStatusWrapper statusWrapper = new FileStatusWrapper(status); FootersCacheValue cacheEntry = footersCache.getCurrentValue(statusWrapper);
public FootersCacheValue(FileStatusWrapper status, Footer footer) { this.modificationTime = status.getModificationTime(); this.footer = new Footer(footer.getFile(), footer.getParquetMetadata()); }
@Override public boolean isCurrent(FileStatusWrapper key) { long currentModTime = key.getModificationTime(); boolean isCurrent = modificationTime >= currentModTime; if (Log.DEBUG && !isCurrent) { LOG.debug("The cache value for '" + key + "' is not current: " + "cached modification time=" + modificationTime + ", " + "current modification time: " + currentModTime); } return isCurrent; }