|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ncml.Aggregation.Dataset
public class Aggregation.Dataset
Encapsolates a NetcdfFile that is a component of the aggregation.
| Field Summary | |
|---|---|
protected java.lang.String |
cacheLocation
|
protected java.util.Set<NetcdfDataset.Enhance> |
enhance
|
protected java.lang.Object |
extraInfo
|
protected java.lang.String |
id
|
protected java.lang.String |
location
|
protected FileFactory |
reader
|
| Constructor Summary | |
|---|---|
protected |
Aggregation.Dataset(CrawlableDataset cd)
|
protected |
Aggregation.Dataset(java.lang.String location)
For subclasses. |
protected |
Aggregation.Dataset(java.lang.String cacheLocation,
java.lang.String location,
java.lang.String id,
java.util.EnumSet<NetcdfDataset.Enhance> enhance,
FileFactory reader)
Dataset constructor. |
| Method Summary | |
|---|---|
NetcdfFile |
acquireFile(CancelTask cancelTask)
|
protected void |
cacheVariables(NetcdfFile ncfile)
|
protected void |
close(NetcdfFile ncfile)
|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object oo)
|
java.lang.String |
getCacheLocation()
|
java.lang.String |
getId()
|
java.lang.String |
getLocation()
Get the location of this Dataset |
int |
hashCode()
|
protected Array |
read(Variable mainv,
CancelTask cancelTask)
|
protected Array |
read(Variable mainv,
CancelTask cancelTask,
java.util.List<Range> section)
Read a section of the local Variable. |
void |
show(java.util.Formatter f)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String location
protected java.lang.String id
protected java.lang.String cacheLocation
protected FileFactory reader
protected java.util.Set<NetcdfDataset.Enhance> enhance
protected java.lang.Object extraInfo
| Constructor Detail |
|---|
protected Aggregation.Dataset(java.lang.String location)
location - location attribute on the netcdf elementprotected Aggregation.Dataset(CrawlableDataset cd)
protected Aggregation.Dataset(java.lang.String cacheLocation,
java.lang.String location,
java.lang.String id,
java.util.EnumSet<NetcdfDataset.Enhance> enhance,
FileFactory reader)
cacheLocation - a unique name to use for cachinglocation - attribute "location" on the netcdf elementid - attribute "id" on the netcdf elementenhance - open dataset in enhance mode, may be null NOT USEDreader - factory for reading this netcdf dataset; if null, use NetcdfDataset.open( location)| Method Detail |
|---|
public java.lang.String getLocation()
public java.lang.String getCacheLocation()
public java.lang.String getId()
public NetcdfFile acquireFile(CancelTask cancelTask)
throws java.io.IOException
java.io.IOException
protected void close(NetcdfFile ncfile)
throws java.io.IOException
java.io.IOException
protected void cacheVariables(NetcdfFile ncfile)
throws java.io.IOException
java.io.IOExceptionpublic void show(java.util.Formatter f)
protected Array read(Variable mainv,
CancelTask cancelTask)
throws java.io.IOException
java.io.IOException
protected Array read(Variable mainv,
CancelTask cancelTask,
java.util.List<Range> section)
throws java.io.IOException,
InvalidRangeException
mainv - aggregated VariablecancelTask - let user cancelsection - reletive to the local Variable
java.io.IOException - on I/O error
InvalidRangeException - on section errorpublic boolean equals(java.lang.Object oo)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||