public class InFileAndMemoryDataSetCache extends Object implements DataSetCache
| Constructor and Description |
|---|
InFileAndMemoryDataSetCache(File cacheDirectory) |
InFileAndMemoryDataSetCache(Path cacheDirectory) |
InFileAndMemoryDataSetCache(String cacheDirectory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key) |
DataSet |
get(String key) |
boolean |
isComplete(String namespace)
Check is given namespace has complete cache of the data set
|
void |
put(String key,
DataSet dataSet) |
void |
setComplete(String namespace,
boolean value)
Sets the flag indicating whether given namespace is fully cached
|
public InFileAndMemoryDataSetCache(File cacheDirectory)
public InFileAndMemoryDataSetCache(Path cacheDirectory)
public InFileAndMemoryDataSetCache(String cacheDirectory)
public boolean isComplete(String namespace)
DataSetCacheisComplete in interface DataSetCachepublic void setComplete(String namespace, boolean value)
DataSetCachesetComplete in interface DataSetCachepublic DataSet get(String key)
get in interface DataSetCachepublic void put(String key, DataSet dataSet)
put in interface DataSetCachepublic boolean contains(String key)
contains in interface DataSetCacheCopyright © 2021. All rights reserved.