@Guarded(applyFieldConstraintsToConstructors=true) public class CachedCommonProperties extends Object
CommonProperties.
The constructor tries to load the cache from the given file. If the file does not exist, an empty cache is created and
filled with every cache miss. Call save() to write the cache on disk. Set offline to true if you want to
use the cached values only. Values from the cache are used regardless of the original parameters for threshold, endpoint and sampleSize.public CachedCommonProperties(File cacheFile, String endpoint, Double threshold, Integer maxResultSize, Integer sampleSize) throws IOException
IOExceptionpublic LinkedHashMap<String,Integer> getCommonProperties(@NotNull@NotEmpty String where)
public void save()
throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.