|
||||||||||
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 String |
cacheLocation
|
protected Set<NetcdfDataset.Enhance> |
enhance
|
protected Object |
extraInfo
|
protected String |
id
|
protected String |
location
|
protected FileFactory |
reader
|
Constructor Summary | |
---|---|
protected |
Aggregation.Dataset(MFile mfile)
|
protected |
Aggregation.Dataset(String location)
For subclasses. |
protected |
Aggregation.Dataset(String cacheLocation,
String location,
String id,
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(Object o)
|
boolean |
equals(Object oo)
|
protected Variable |
findVariable(NetcdfFile ncfile,
Variable mainV)
|
String |
getCacheLocation()
|
String |
getId()
|
String |
getLocation()
Get the location of this Dataset |
int |
hashCode()
|
protected Array |
read(Variable mainv,
CancelTask cancelTask)
|
protected Array |
read(Variable mainv,
CancelTask cancelTask,
List<Range> section)
Read a section of the local Variable. |
void |
show(Formatter f)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String location
protected String id
protected String cacheLocation
protected FileFactory reader
protected Set<NetcdfDataset.Enhance> enhance
protected Object extraInfo
Constructor Detail |
---|
protected Aggregation.Dataset(String location)
location
- location attribute on the netcdf elementprotected Aggregation.Dataset(MFile mfile)
protected Aggregation.Dataset(String cacheLocation, String location, String id, 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 String getLocation()
public String getCacheLocation()
public String getId()
public NetcdfFile acquireFile(CancelTask cancelTask) throws IOException
IOException
protected void close(NetcdfFile ncfile) throws IOException
IOException
protected void cacheVariables(NetcdfFile ncfile) throws IOException
IOException
public void show(Formatter f)
protected Array read(Variable mainv, CancelTask cancelTask) throws IOException
IOException
protected Array read(Variable mainv, CancelTask cancelTask, List<Range> section) throws IOException, InvalidRangeException
mainv
- aggregated VariablecancelTask
- let user cancelsection
- reletive to the local Variable
IOException
- on I/O error
InvalidRangeException
- on section errorprotected Variable findVariable(NetcdfFile ncfile, Variable mainV)
public boolean equals(Object oo)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |