public class DataStoreParameter extends ChoiceParameter<DataStoreFactory>
| Modifier and Type | Field and Description |
|---|---|
static DataStoreFactory |
BASIC_CACHE
Memory-cached storage: data is first read into arrays in memory.
|
static DataStoreFactory |
DISK_CACHE
Smart disk-cached storage.
|
static DataStoreFactory |
MEMORY_CACHE
Smart memory-cached storage: like BASIC_CACHE but tries to spot
non-varying columns etc for more efficient storage.
|
static DataStoreFactory |
PARALLEL_MEMORY_CACHE |
static DataStoreFactory |
PERSISTENT_CACHE
Persistent cached storage in default scratch directory.
|
static DataStoreFactory |
POLICY_CACHE
Smart cached storage based on the default Storage Policy.
|
static DataStoreFactory |
SIMPLE
Simple storage: data is read on demand from table every time.
|
| Constructor and Description |
|---|
DataStoreParameter(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DataStoreFactory |
getDefaultForCaching(boolean isCachingSensible)
Returns the default value for this parameter based on whether
caching is believed to be a good idea.
|
void |
setDefaultCaching(boolean caching)
Sets whether caching generally is or is not advised.
|
getUsage, objectToString, setDefaultOption, setUsage, stringToObjectaddOption, addOption, choiceToString, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, stringifyOption, stringToChoiceclearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toStringpublic static final DataStoreFactory SIMPLE
public static final DataStoreFactory BASIC_CACHE
public static final DataStoreFactory MEMORY_CACHE
public static final DataStoreFactory PARALLEL_MEMORY_CACHE
public static final DataStoreFactory DISK_CACHE
public static final DataStoreFactory POLICY_CACHE
public static final DataStoreFactory PERSISTENT_CACHE
public DataStoreParameter(String name)
name - parameter namepublic void setDefaultCaching(boolean caching)
caching - true if caching is likely to be a good strategypublic DataStoreFactory getDefaultForCaching(boolean isCachingSensible)
isCachingSensible - true if caching is likely
to be a good strategyCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.