public abstract class FeatureDatasetImpl extends java.lang.Object implements FeatureDataset
| Modifier and Type | Field and Description |
|---|---|
protected LatLonRect |
boundingBox |
protected java.util.List<VariableSimpleIF> |
dataVariables |
protected CalendarDateRange |
dateRange |
protected java.lang.String |
desc |
protected FileCacheIF |
fileCache |
protected java.lang.String |
location |
protected NetcdfDataset |
netcdfDataset |
protected java.util.Formatter |
parseInfo |
protected java.lang.String |
title |
| Modifier | Constructor and Description |
|---|---|
|
FeatureDatasetImpl()
No-arg constuctor
|
protected |
FeatureDatasetImpl(FeatureDatasetImpl from) |
|
FeatureDatasetImpl(NetcdfDataset netcdfDataset)
Constructor when theres a NetcdfFile underneath
|
|
FeatureDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
Constructor when theres no NetcdfFile underneath.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeContainer |
attributes()
Get the global attributes.
|
void |
close()
Close all resources associated with this dataset.
|
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
Deprecated.
use attributes()
|
LatLonRect |
getBoundingBox()
The lat/lon boundingBox for the entire dataset.
|
CalendarDate |
getCalendarDateEnd()
Ending Calendar date for the entire dataset.
|
CalendarDateRange |
getCalendarDateRange()
Calendar Date range for the entire dataset.
|
CalendarDate |
getCalendarDateStart()
Starting Calendar date for the entire dataset.
|
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable.
|
java.util.List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset.
|
java.lang.String |
getDescription()
Text information about this dataset.
|
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details
|
java.util.List<Attribute> |
getGlobalAttributes()
Deprecated.
use attributes()
|
java.lang.String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
java.lang.String |
getLocation()
The URI location of the dataset
|
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
java.lang.String |
getTitle()
Title of the dataset.
|
void |
reacquire()
Deprecated.
do not use
|
void |
release()
Deprecated.
do not use
|
void |
setBoundingBox(LatLonRect boundingBox) |
void |
setDateRange(CalendarDateRange dateRange) |
protected void |
setDescription(java.lang.String desc) |
void |
setFileCache(FileCacheIF fileCache)
Deprecated.
do not use
|
protected void |
setLocationURI(java.lang.String location) |
protected void |
setTitle(java.lang.String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatureTypeprotected NetcdfDataset netcdfDataset
protected java.lang.String title
protected java.lang.String desc
protected java.lang.String location
protected java.util.List<VariableSimpleIF> dataVariables
protected java.util.Formatter parseInfo
protected CalendarDateRange dateRange
protected LatLonRect boundingBox
protected FileCacheIF fileCache
protected FeatureDatasetImpl(FeatureDatasetImpl from)
public FeatureDatasetImpl()
public FeatureDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
title - title of the dataset.description - description of the dataset.location - URI of the datasetpublic FeatureDatasetImpl(NetcdfDataset netcdfDataset)
netcdfDataset - adapt this NetcdfDatasetprotected void setTitle(java.lang.String title)
protected void setDescription(java.lang.String desc)
protected void setLocationURI(java.lang.String location)
public void setDateRange(CalendarDateRange dateRange)
public void setBoundingBox(LatLonRect boundingBox)
public NetcdfFile getNetcdfFile()
FeatureDatasetgetNetcdfFile in interface FeatureDatasetpublic java.lang.String getTitle()
FeatureDatasetgetTitle in interface FeatureDatasetpublic java.lang.String getDescription()
FeatureDatasetgetDescription in interface FeatureDatasetpublic java.lang.String getLocation()
FeatureDatasetgetLocation in interface FeatureDatasetgetLocation in interface FileCacheablepublic AttributeContainer attributes()
FeatureDatasetattributes in interface FeatureDataset@Deprecated public java.util.List<Attribute> getGlobalAttributes()
FeatureDatasetgetGlobalAttributes in interface FeatureDataset@Deprecated public Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
FeatureDatasetfindGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute namepublic void getDetailInfo(java.util.Formatter sf)
FeatureDatasetgetDetailInfo in interface FeatureDatasetsf - append info herepublic CalendarDateRange getCalendarDateRange()
FeatureDatasetgetCalendarDateRange in interface FeatureDatasetpublic CalendarDate getCalendarDateStart()
FeatureDatasetgetCalendarDateStart in interface FeatureDatasetpublic CalendarDate getCalendarDateEnd()
FeatureDatasetgetCalendarDateEnd in interface FeatureDatasetpublic LatLonRect getBoundingBox()
FeatureDatasetgetBoundingBox in interface FeatureDatasetpublic java.util.List<VariableSimpleIF> getDataVariables()
FeatureDatasetgetDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
FeatureDatasetgetDataVariable in interface FeatureDatasetshortName - of data Variable.public java.lang.String getImplementationName()
FeatureDatasetgetImplementationName in interface FeatureDatasetpublic void close()
throws java.io.IOException
FeatureDatasetclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface FeatureDatasetclose in interface FileCacheablejava.io.IOException - on io error@Deprecated
public void release()
throws java.io.IOException
FileCacheablerelease in interface FileCacheablejava.io.IOException@Deprecated
public void reacquire()
throws java.io.IOException
FileCacheablereacquire in interface FileCacheablejava.io.IOExceptionpublic long getLastModified()
FileCacheableFileFactory.getLastModified in interface FileCacheablelong value representing the time the file(s) were last modified or 0L if the
last-modified time couldn't be determined for any reason.@Deprecated public void setFileCache(FileCacheIF fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException {
if (cache != null) {
if (cache.release(this))
return;
}
reallyClose();
}
setFileCache in interface FileCacheablefileCache - must store this, use it on close as above.