|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ncml.AggregationFmrcSingle.OpenDataset
public class AggregationFmrcSingle.OpenDataset
Encapsolates a NetcdfFile that is a component of the aggregation. public for NcMLWriter
| Field Summary | |
|---|---|
protected java.lang.String |
cacheLocation
|
protected ucar.nc2.ncml.MyCrawlableDataset |
cd
|
protected java.lang.String |
coordValue
|
protected java.util.Date |
coordValueDate
|
protected java.util.EnumSet<NetcdfDataset.Enhance> |
enhance
|
protected boolean |
isStringValued
|
protected java.lang.String |
location
|
protected int |
ncoord
|
protected FileFactory |
reader
|
| Constructor Summary | |
|---|---|
protected |
AggregationFmrcSingle.OpenDataset(NetcdfFile openFile,
java.util.Date coordValueDate,
java.lang.String coordValue)
Dataset constructor with an opened NetcdfFile. |
| Method Summary | |
|---|---|
protected NetcdfFile |
acquireFile(CancelTask cancelTask)
|
protected void |
cacheVariables(NetcdfFile ncfile)
|
protected void |
close(NetcdfFile ncfile)
|
boolean |
equals(java.lang.Object oo)
|
java.util.Date |
getCoordValueDate()
Get the coordinate value as a Date for this Dataset; may be null |
java.lang.String |
getCoordValueString()
Get the coordinate value(s) as a String for this Dataset |
java.lang.String |
getLocation()
Get the location of this Dataset |
int |
getNcoords(CancelTask cancelTask)
Get number of coordinates in this Dataset. |
protected Range |
getNestedJoinRange(Range totalRange)
Get the desired Range, reletive to this Dataset, if no overlap, return null. |
int |
hashCode()
|
protected boolean |
isNeeded(Range totalRange)
|
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. |
protected void |
setInfo(ucar.nc2.ncml.MyCrawlableDataset myf)
|
protected int |
setStartEnd(int aggStart,
CancelTask cancelTask)
Set the starting and ending index into the aggregation dimension |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int ncoord
protected java.lang.String coordValue
protected java.util.Date coordValueDate
protected boolean isStringValued
protected java.lang.String location
protected ucar.nc2.ncml.MyCrawlableDataset cd
protected java.lang.String cacheLocation
protected FileFactory reader
protected java.util.EnumSet<NetcdfDataset.Enhance> enhance
| Constructor Detail |
|---|
protected AggregationFmrcSingle.OpenDataset(NetcdfFile openFile,
java.util.Date coordValueDate,
java.lang.String coordValue)
openFile - already opened filecoordValueDate - has this coordinate as a datecoordValue - has this coordinate as a String| Method Detail |
|---|
protected NetcdfFile acquireFile(CancelTask cancelTask)
throws java.io.IOException
java.io.IOException
protected void close(NetcdfFile ncfile)
throws java.io.IOException
java.io.IOExceptionprotected void setInfo(ucar.nc2.ncml.MyCrawlableDataset myf)
public java.lang.String getCoordValueString()
public java.util.Date getCoordValueDate()
public int getNcoords(CancelTask cancelTask)
throws java.io.IOException
cancelTask - allow cancellation
java.io.IOException - if io error
protected int setStartEnd(int aggStart,
CancelTask cancelTask)
throws java.io.IOException
aggStart - starting indexcancelTask - allow to bail out
java.io.IOException - if io error
protected Range getNestedJoinRange(Range totalRange)
throws InvalidRangeException
wantStart, wantStop are the indices in the aggregated dataset, wantStart <= i < wantEnd. if this overlaps, set the Range required for the nested dataset. note this should handle strides ok.
totalRange - desired range, reletive to aggregated dimension.
InvalidRangeException - if invalid range requestprotected boolean isNeeded(Range totalRange)
protected void cacheVariables(NetcdfFile ncfile)
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 java.lang.String getLocation()
protected Array read(Variable mainv,
CancelTask cancelTask)
throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object oo)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||