public class LoadingLookup extends LookupExtractor
OnHeapLoadingCacheis onheap backed by a Guava cache implementation, the second OffHeapLoadingCacheis MapDB offheap implementation.
Both implementations offer various eviction strategies.| Constructor and Description |
|---|
LoadingLookup(DataFetcher dataFetcher,
LoadingCache<String,String> loadingCache,
LoadingCache<String,List<String>> reverseLoadingCache) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String key) |
void |
close() |
byte[] |
getCacheKey() |
boolean |
isOpen() |
String |
toString() |
List<String> |
unapply(String value) |
applyAll, isOneToOne, unapplyAllpublic LoadingLookup(DataFetcher dataFetcher, LoadingCache<String,String> loadingCache, LoadingCache<String,List<String>> reverseLoadingCache)
public String apply(String key)
apply in class LookupExtractorpublic List<String> unapply(String value)
unapply in class LookupExtractorpublic void close()
public boolean isOpen()
public byte[] getCacheKey()
getCacheKey in class LookupExtractorCopyright © 2011–2018. All rights reserved.