Package | Description |
---|---|
com.yahoo.prelude.fastsearch | |
com.yahoo.vespa.streamingvisitors |
Modifier and Type | Field and Description |
---|---|
private CacheKey |
FastHit.cacheKey |
Modifier and Type | Method and Description |
---|---|
private CacheKey |
FastSearcher.fetchCacheKeyFromHits(HitGroup hits,
String summaryClass) |
(package private) CacheKey |
FastHit.getCacheKey() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
VespaBackEndSearcher.addUnfilledHits(Result result,
List<DocumentInfo> documents,
boolean fromCache,
QueryPacketData queryPacketData,
CacheKey cacheKey)
Creates unfilled hits from a List of DocumentInfo instances.
|
(package private) void |
CacheControl.cache(CacheKey key,
Query query,
DocsumPacketKey[] packetKeys,
Packet[] packets) |
private Result |
VespaBackEndSearcher.cacheLookupFirstPhase(CacheKey key,
QueryPacketData queryPacketData,
Query query,
int offset,
int hits,
String summaryClass) |
protected PacketWrapper |
VespaBackEndSearcher.cacheLookupTwoPhase(CacheKey cacheKey,
Result result,
String summaryClass) |
protected abstract Result |
VespaBackEndSearcher.doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution)
Searches a search cluster
This is an endpoint - searchers will never propagate the search to any nested searcher.
|
Result |
FastSearcher.doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution) |
PacketWrapper |
PacketCache.get(CacheKey key) |
PacketWrapper |
PacketCache.get(CacheKey key,
long now) |
private Result |
VespaBackEndSearcher.getCached(CacheKey cacheKey,
QueryPacketData queryPacketData,
Query query)
Returns a cached result, or null if no result was cached for this key
|
PacketWrapper |
CacheControl.lookup(CacheKey key,
Query query) |
PacketWrapper |
PacketCache.put(CacheKey key,
PacketWrapper value)
Adds a PacketWrapper object to this cache,
unless the size is more than maxCacheItemPercentage of the total size
|
PacketWrapper |
PacketCache.put(CacheKey key,
PacketWrapper result,
long timestamp)
Adds a BasicPacket array to this cache,
unless the size is more than maxCacheItemPercentage of the total size
|
PacketWrapper |
PacketCache.remove(CacheKey key) |
private Result |
FastSearcher.searchTwoPhase(FS4Channel channel,
Query query,
QueryPacket queryPacket,
CacheKey cacheKey) |
(package private) void |
FastHit.setCacheKey(CacheKey cacheKey) |
(package private) void |
CacheControl.updateCacheEntry(CacheKey key,
Query query,
DocsumPacketKey[] packetKeys,
Packet[] packets) |
(package private) void |
CacheControl.updateCacheEntry(CacheKey key,
Query query,
QueryResultPacket resultPacket) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
PacketCache.removeEldestEntry(Map.Entry<CacheKey,PacketWrapper> eldest)
Overrides LinkedHashMap.removeEldestEntry as suggested to implement LRU cache.
|
Constructor and Description |
---|
PacketWrapper(CacheKey key,
BasicPacket[] packets)
Only used by PacketCacheTestCase, should not be used otherwise
|
PacketWrapper(CacheKey key,
DocsumPacketKey[] packetKeys,
BasicPacket[] bpackets) |
Modifier and Type | Method and Description |
---|---|
Result |
VdsStreamingSearcher.doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution) |
Copyright © 2017. All rights reserved.