|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.servers.agg.Dataset
dods.servers.agg.AggDataset
public class AggDataset
This creates a logical dataset, by combining a list of Datasets specified in an "aggregation" element of an InvCatalog.Dataset. The Datasets may be other DODS Datasets (DODSDataset) or local netcdf files (NcDataset). Since they all implement Dataset interface, this is a Composite design pattern. Currently can do: Type 1: combine datasets, creating a new coordinate variable, one dataset per coord Type 2: combine all the variables in a set of datasets Type 3: combine datasets based on an existing coordinate variable,
Nested Class Summary | |
---|---|
static class |
AggDataset.AggFactory
This is public as an artifact of implementing an interface. |
class |
AggDataset.AggFile
|
Method Summary | |
---|---|
static Dataset |
acquire(String extPath,
String intPath,
InvCatalog.Dataset invDS)
This finds the named dataset and gets a lock on it. |
void |
close()
|
ArrayList |
getAggFiles()
|
static Iterator |
getCache()
|
static int |
getCacheSize()
get current size of the cache. |
protected DDS |
getClientDDS()
|
DAS |
getDAS()
Get the DAS for this Dataset. |
String |
getDateFormat()
|
ServerDDS |
getDDS()
Get the DDS for this Dataset. |
AggDataset.AggFile |
getFileForVar(String varName)
|
String |
getVariableName()
|
void |
mapVarToFile(String varName,
AggDataset.AggFile af)
|
void |
release()
Release the lock on this dataset. |
static void |
setCacheMax(int maxCached)
set the size of the open dataset cache. |
static void |
setWaitTime(long wait)
set maximum time to wait before opening another copy of the dataset. |
Methods inherited from class dods.servers.agg.Dataset |
---|
acquire, attempt, getCatalogDataset, getExternalPath, getInternalPath, isLockedByMe, setDebug, whoHasLock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setCacheMax(int maxCached)
public static void setWaitTime(long wait)
wait
- : time in msecpublic static int getCacheSize()
public static Iterator getCache()
public static Dataset acquire(String extPath, String intPath, InvCatalog.Dataset invDS) throws IOException
extPath
- : external URL of datasetintPath
- : internal URL of datasetinvDS
- : InvCatalog.Dataset object
IOException
public void release()
release
in interface GuardedDataset
release
in class Dataset
public ServerDDS getDDS()
GuardedDataset
getDDS
in interface GuardedDataset
getDDS
in class Dataset
public DAS getDAS()
GuardedDataset
getDAS
in interface GuardedDataset
getDAS
in class Dataset
public ArrayList getAggFiles()
protected DDS getClientDDS()
getClientDDS
in class Dataset
public String getVariableName()
public String getDateFormat()
public void close()
close
in class Dataset
public void mapVarToFile(String varName, AggDataset.AggFile af)
public AggDataset.AggFile getFileForVar(String varName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |