|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.task.Parameter<T>
uk.ac.starlink.task.ChoiceParameter<DataStoreFactory>
uk.ac.starlink.ttools.plot2.task.DataStoreParameter
public class DataStoreParameter
Parameter to control the way that plot data is cached prior to performing one or more plots.
Field Summary | |
---|---|
static DataStoreFactory |
BASIC_CACHE
Cached storage: data is first read into arrays in memory. |
static DataStoreFactory |
SIMPLE
Simple storage: data is read on demand from table every time. |
static DataStoreFactory |
SMART_CACHE
Smart cached storage: like BASIC_CACHE but tries to spot non-varying columns etc for more efficient storage. |
Fields inherited from class uk.ac.starlink.task.Parameter |
---|
BY_NAME |
Constructor Summary | |
---|---|
DataStoreParameter(String name)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class uk.ac.starlink.task.ChoiceParameter |
---|
addOption, addOption, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, getUsage, objectToString, setDefaultOption, setUsage, stringifyOption, stringToObject |
Methods inherited from class uk.ac.starlink.task.Parameter |
---|
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DataStoreFactory SIMPLE
public static final DataStoreFactory BASIC_CACHE
public static final DataStoreFactory SMART_CACHE
Constructor Detail |
---|
public DataStoreParameter(String name)
name
- parameter nameMethod Detail |
---|
public 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 strategy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |