public final class QueryResultsCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryResultsCache.CacheEntry |
static class |
QueryResultsCache.CacheEntryStatus |
static class |
QueryResultsCache.InvalidationEventConsumer |
static class |
QueryResultsCache.LookupInfo |
static class |
QueryResultsCache.QueryInfo |
| Modifier and Type | Method and Description |
|---|---|
QueryResultsCache.CacheEntry |
addToCache(QueryResultsCache.QueryInfo queryInfo,
ValidTxnWriteIdList txnWriteIdList)
Add an entry to the cache.
|
static void |
cleanupInstance() |
void |
clear() |
static void |
decrementMetric(String name) |
static void |
decrementMetric(String name,
long count) |
org.apache.hadoop.fs.Path |
getCacheDirPath() |
static QueryResultsCache |
getInstance() |
long |
getSize() |
static void |
incrementMetric(String name) |
static void |
incrementMetric(String name,
long count) |
static void |
initialize(HiveConf conf) |
QueryResultsCache.CacheEntry |
lookup(QueryResultsCache.LookupInfo request)
Check if the cache contains an entry for the requested LookupInfo.
|
void |
notifyTableChanged(String dbName,
String tableName,
long updateTime) |
void |
removeEntry(QueryResultsCache.CacheEntry entry) |
boolean |
setEntryValid(QueryResultsCache.CacheEntry cacheEntry,
FetchWork fetchWork)
Updates a pending cache entry with a FetchWork result from a finished query.
|
public static void initialize(HiveConf conf) throws IOException
IOExceptionpublic static QueryResultsCache getInstance()
public org.apache.hadoop.fs.Path getCacheDirPath()
public QueryResultsCache.CacheEntry lookup(QueryResultsCache.LookupInfo request)
request - public QueryResultsCache.CacheEntry addToCache(QueryResultsCache.QueryInfo queryInfo, ValidTxnWriteIdList txnWriteIdList)
queryInfo - public boolean setEntryValid(QueryResultsCache.CacheEntry cacheEntry, FetchWork fetchWork)
cacheEntry - fetchWork - public void clear()
public long getSize()
public void removeEntry(QueryResultsCache.CacheEntry entry)
public static void cleanupInstance()
public static void incrementMetric(String name, long count)
public static void decrementMetric(String name, long count)
public static void incrementMetric(String name)
public static void decrementMetric(String name)
Copyright © 2022 The Apache Software Foundation. All rights reserved.