protected RowIndexEntry getCachedPosition(KeyCacheKey unifiedKey, boolean updateStats) { if (keyCache != null && keyCache.getCapacity() > 0 && metadata.params.caching.cacheKeys()) { if (updateStats) { RowIndexEntry cachedEntry = keyCache.get(unifiedKey); keyCacheRequest.incrementAndGet(); if (cachedEntry != null) { keyCacheHit.incrementAndGet(); bloomFilterTracker.addTruePositive(); } return cachedEntry; } else { return keyCache.getInternal(unifiedKey); } } return null; }
protected RowIndexEntry getCachedPosition(KeyCacheKey unifiedKey, boolean updateStats) { if (keyCache != null && keyCache.getCapacity() > 0 && metadata.params.caching.cacheKeys()) { if (updateStats) { RowIndexEntry cachedEntry = keyCache.get(unifiedKey); keyCacheRequest.incrementAndGet(); if (cachedEntry != null) { keyCacheHit.incrementAndGet(); bloomFilterTracker.addTruePositive(); } return cachedEntry; } else { return keyCache.getInternal(unifiedKey); } } return null; }
protected RowIndexEntry getCachedPosition(KeyCacheKey unifiedKey, boolean updateStats) { if (keyCache != null && keyCache.getCapacity() > 0 && metadata.params.caching.cacheKeys()) { if (updateStats) { RowIndexEntry cachedEntry = keyCache.get(unifiedKey); keyCacheRequest.incrementAndGet(); if (cachedEntry != null) { keyCacheHit.incrementAndGet(); bloomFilterTracker.addTruePositive(); } return cachedEntry; } else { return keyCache.getInternal(unifiedKey); } } return null; }
private RowIndexEntry getCachedPosition(KeyCacheKey unifiedKey, boolean updateStats) { if (keyCache != null && keyCache.getCapacity() > 0 && metadata.getCaching().keyCache.isEnabled()) { if (updateStats) { RowIndexEntry cachedEntry = keyCache.get(unifiedKey); keyCacheRequest.incrementAndGet(); if (cachedEntry != null) { keyCacheHit.incrementAndGet(); bloomFilterTracker.addTruePositive(); } return cachedEntry; } else { return keyCache.getInternal(unifiedKey); } } return null; }