public static class RAMDictionary.DataLoader extends Object implements Callable<RAMDictionary.DictionaryData>
Callable that creates a dictionary data from a specified
dictionary. The data loader does not change the open state of the
dictionary; the dictionary for the loader must be open for the loader to
function without throwing an exception. The loader may be called multiple
times (in a thread-safe manner) as long as the dictionary is open.| Constructor and Description |
|---|
DataLoader(IDictionary source)
Constructs a new data loader object, that uses the specified
dictionary to load its data.
|
| Modifier and Type | Method and Description |
|---|---|
RAMDictionary.DictionaryData |
call() |
protected ISenseEntry |
makeSenseEntry(ISenseKey key,
ISenseEntry old)
Creates a new sense entry that replicates the specified sense entry.
|
public DataLoader(IDictionary source)
NullPointerException - if the specified dictionary is nullpublic RAMDictionary.DictionaryData call() throws Exception
call in interface Callable<RAMDictionary.DictionaryData>Exceptionprotected ISenseEntry makeSenseEntry(ISenseKey key, ISenseEntry old)
key - the sense key to be usedold - the sense entry to be replicatedNullPointerException - if either argument is nullCopyright © 2018. All rights reserved.