public class DSSFile
extends java.lang.Object
implements hec.dataTable.SavableDataFrame
| Constructor and Description |
|---|
DSSFile(hec.dssgui.CombinedDataManager dataManager)
Constructor for the DSSFile object
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Explicitly close the DSS file
|
int |
copyRecordsFrom(java.lang.String toDSSFilename,
java.lang.String[] pathnameList) |
int |
copyRecordsFrom(java.lang.String toDSSFilename,
java.util.Vector pathnameList) |
int |
copyRecordsInto(java.lang.String fromDSSFilename,
java.lang.String[] pathnameList) |
int |
copyRecordsInto(java.lang.String fromDSSFilename,
java.util.Vector pathnameList) |
int |
delete(java.lang.String[] pathnameList) |
int |
delete(java.util.Vector pathnameList) |
void |
done()
Release the DSS file for this object
|
int |
duplicateRecords(java.lang.String[] pathnameList,
java.lang.String[] newPathnameList) |
int |
duplicateRecords(java.util.Vector pathnameList,
java.util.Vector newPathnameList) |
void |
forceMultiUserAccess() |
java.util.Vector |
getCatalogedPathnames()
Retrieves a list of all cataloged pathnames.
|
java.util.Vector |
getCatalogedPathnames(boolean forceNew)
Retrieves a list of all cataloged pathnames, optionally refreshing the
catalog in the process.
|
java.util.Vector |
getCatalogedPathnames(java.lang.String scanString)
Searches the cataloged pathnames, returning a list of those which match the
specified instructions.
|
java.util.Vector |
getCatalogedPathnames(java.lang.String scanString,
boolean forceNew)
Searches the cataloged pathnames, returning a list of those which match the
specified instructions - optionally refreshing the catalog in the process.
|
hec.dssgui.CombinedDataManager |
getDataManager() |
java.lang.String |
getEndTime()
get the timewindow end time
|
java.lang.String |
getFilename()
get the DSSFile's filename
|
int |
getIrregularStoreMethod() |
int |
getRegularStoreMethod() |
java.lang.String |
getStartTime()
get the timewindow start time
|
boolean |
getTrimMissing()
Gets the "trim missing data" state of the DSSFile object
If the "trim missing data" state is TRUE, blocks of missing
data will be removed from the start and end of all regular
time series records
|
boolean |
isRemote() |
HecMath |
read(java.lang.String pathname)
read from the file that this DSSFile represents the DSSPathname specified
in pathname.
|
HecMath |
read(java.lang.String pathname,
java.lang.String timeWindow)
read from the file that this DSSFile represents the DSSPathname specified
in pathname with the specified start and end times.
|
HecMath |
read(java.lang.String pathname,
java.lang.String startTime,
java.lang.String endTime)
read from the file that this DSSFile represents the DSSPathname specified
in pathname with the specified start and end times.
|
HecMath |
read(java.lang.String pathname,
java.lang.String startTime,
java.lang.String endTime,
boolean trimMissing)
read from the file that this DSSFile represents the DSSPathname specified
in pathname with the specified start and end times.
|
boolean |
recordExists(java.lang.String pathname)
check to see if the record specified by
pathname exists in this file |
java.util.Vector<java.lang.String> |
recordsUpdated(HecTime startTime) |
int |
recordsUpdated(HecTime startTime,
java.util.Vector<java.lang.String> pathnames,
java.util.Vector<java.lang.Long> updateTimes,
java.util.Vector<java.lang.Integer> recordTypes) |
java.util.Vector<java.lang.String> |
recordsUpdated(long startTime) |
int |
recordsUpdated(long startTime,
java.util.Vector<java.lang.String> pathnames,
java.util.Vector<java.lang.Long> updateTimes,
java.util.Vector<java.lang.Integer> recordTypes)
Retrieves infomation about record updated since the
specified time.
|
java.util.Vector<java.lang.String> |
recordsUpdated(java.lang.String startTime) |
int |
recordsUpdated(java.lang.String startTime,
java.util.Vector<java.lang.String> pathnames,
java.util.Vector<java.lang.Long> updateTimes,
java.util.Vector<java.lang.Integer> recordTypes) |
int |
renameRecords(java.lang.String[] pathnameList,
java.lang.String[] newPathnameList) |
int |
renameRecords(java.util.Vector pathnameList,
java.util.Vector newPathnameList) |
boolean |
save(DataContainer dataContainer) |
int |
save(java.util.Vector dataContainers) |
boolean |
saveAs(DataContainer dataContainer) |
boolean |
saveAs(java.util.Vector dataContainers) |
java.util.Vector |
searchPathnames(java.lang.String scanString)
Searches the DSS file for pathnames, returning a list of those which match the
specified instructions.
|
void |
setFilename(java.lang.String filename)
Sets the Filename attribute of the DSSFile object
|
void |
setIrregularStoreMethod(int method) |
void |
setRegularStoreMethod(int method) |
void |
setTimeWindow(java.lang.String timeWindow)
Sets the TimeWindow attribute of the DSSFile object
|
void |
setTimeWindow(java.lang.String startTime,
java.lang.String endTime)
Sets the TimeWindow attribute of the DSSFile object
|
void |
setTrimMissing(boolean trimMissing)
Sets the "trim missing data" state of the DSSFile object
If the "trim missing data" state is TRUE, blocks of missing
data will be removed from the start and end of all regular
time series records
|
int |
write(DataContainer dataContainer)
write the HecMath object out to disk
|
int |
write(HecMath mathGuy)
write the HecMath object out to disk
|
int |
write(hec.data.cwmsRating.RatingSet rating)
Write a RatingSet object to DSS
|
int |
write(TimeSeriesMath mathGuy,
java.lang.String storeMethod)
Write a time series to disk with a specified storage method.
|
public DSSFile(hec.dssgui.CombinedDataManager dataManager)
dataManager - Descriptionpublic void close()
public void forceMultiUserAccess()
public void done()
public boolean isRemote()
public java.lang.String getFilename()
public java.lang.String getStartTime()
public java.lang.String getEndTime()
public boolean getTrimMissing()
public int getRegularStoreMethod()
public int getIrregularStoreMethod()
public hec.dssgui.CombinedDataManager getDataManager()
public int recordsUpdated(long startTime,
java.util.Vector<java.lang.String> pathnames,
java.util.Vector<java.lang.Long> updateTimes,
java.util.Vector<java.lang.Integer> recordTypes)
Any of the vector parameters may be null if that information is not required. Any of the vectors that are not null are cleared before being populated.
startTime - Time after which to report updated records - in Java
millisecondspathnames - The list of pathnames of the records that have been updated
- may be null.updateTimes - The list of update times of the records that have been updated
- may be null.recordTypes - The list of types of the records that have been updated
- may be null.public int recordsUpdated(HecTime startTime, java.util.Vector<java.lang.String> pathnames, java.util.Vector<java.lang.Long> updateTimes, java.util.Vector<java.lang.Integer> recordTypes)
public int recordsUpdated(java.lang.String startTime,
java.util.Vector<java.lang.String> pathnames,
java.util.Vector<java.lang.Long> updateTimes,
java.util.Vector<java.lang.Integer> recordTypes)
public java.util.Vector<java.lang.String> recordsUpdated(long startTime)
public java.util.Vector<java.lang.String> recordsUpdated(HecTime startTime)
public java.util.Vector<java.lang.String> recordsUpdated(java.lang.String startTime)
public void setFilename(java.lang.String filename)
filename - the new filenamepublic void setTimeWindow(java.lang.String timeWindow)
timeWindow - - a string containing the time window,
which can be a relative reference ("T-5D T") or a regular
date time span ("18MAR2005 28MAR2005" or "18MAR2005 2400 28MAR2005 2400"public void setTimeWindow(java.lang.String startTime,
java.lang.String endTime)
startTime - the default start of the timewindowendTime - the default end of the timewindowpublic void setTrimMissing(boolean trimMissing)
trimMissing - the "trim missing data" statepublic void setRegularStoreMethod(int method)
public void setIrregularStoreMethod(int method)
public int duplicateRecords(java.util.Vector pathnameList,
java.util.Vector newPathnameList)
public int duplicateRecords(java.lang.String[] pathnameList,
java.lang.String[] newPathnameList)
public int renameRecords(java.util.Vector pathnameList,
java.util.Vector newPathnameList)
public int renameRecords(java.lang.String[] pathnameList,
java.lang.String[] newPathnameList)
public int copyRecordsFrom(java.lang.String toDSSFilename,
java.util.Vector pathnameList)
public int copyRecordsFrom(java.lang.String toDSSFilename,
java.lang.String[] pathnameList)
public int copyRecordsInto(java.lang.String fromDSSFilename,
java.util.Vector pathnameList)
public int copyRecordsInto(java.lang.String fromDSSFilename,
java.lang.String[] pathnameList)
public int delete(java.util.Vector pathnameList)
public int delete(java.lang.String[] pathnameList)
public HecMath read(java.lang.String pathname) throws HecMathException
pathname - DSS Pathname to readHecMathException - Descriptionjava.lang.UnsupportedOperationException - if the path name
requested is not a TimeSeries record or a Paired Data record
DSSFileException if there is an error reading the pathnamepublic HecMath read(java.lang.String pathname, java.lang.String timeWindow) throws HecMathException
pathname - DSS Pathname to readHecMathException - Descriptionpublic HecMath read(java.lang.String pathname, java.lang.String startTime, java.lang.String endTime) throws HecMathException
pathname - DSS Pathname to readstartTime - start of time windowendTime - end of time windowHecMathException - Descriptionpublic HecMath read(java.lang.String pathname, java.lang.String startTime, java.lang.String endTime, boolean trimMissing) throws HecMathException
pathname - DSS Pathname to readstartTime - start of time windowendTime - end of time windowtrimMissing - trim missing from start and end of regular time seriesHecMathException - Descriptionpublic int write(HecMath mathGuy) throws HecMathException
mathGuy - HecMath objectHecMathException - Descriptionpublic int write(hec.data.cwmsRating.RatingSet rating)
throws HecMathException
rating - The rating to storeHecMathExceptionpublic int write(DataContainer dataContainer) throws HecMathException
dataContainer - DataContainer objectHecMathException - Descriptionpublic int write(TimeSeriesMath mathGuy, java.lang.String storeMethod) throws HecMathException
mathGuy - The TimeSeriesMath object to write.storeMethod - The storage method to use. Valid methods (case insensitive) are:HecMathException - For invalid parameters or problem with the underlying write.public java.util.Vector getCatalogedPathnames()
public java.util.Vector getCatalogedPathnames(boolean forceNew)
forceNew - Specifies whether to refresh the catalog before retrieving
the pathnamespublic java.util.Vector getCatalogedPathnames(java.lang.String scanString)
scanString - The matching instructions for the search. This can be a
pattern string with which to match the entire pathname,
or it can specify pattern strings with which to match one
or more parts of the pathname.Pattern strings have 2 special characters (actually 4, but 2 are aliases for the other 2). Special characters are:
public java.util.Vector searchPathnames(java.lang.String scanString)
scanString - The matching instructions for the search. This can be a
pattern string with which to match the entire pathname,
or it can specify pattern strings with which to match one
or more parts of the pathname.Pattern strings have 2 special characters (actually 4, but 2 are aliases for the other 2). Special characters are:
public java.util.Vector getCatalogedPathnames(java.lang.String scanString,
boolean forceNew)
scanString - The matching instructions for the search. This can be a
pattern string with which to match the entire pathname,
or it can specify pattern strings with which to match one
or more parts of the pathname.Pattern strings have 2 special characters (actually 4, but 2 are aliases for the other 2). Special characters are:
forceNew - Specifies whether to refresh the catalog before performing
the search.public boolean save(DataContainer dataContainer)
save in interface hec.dataTable.SavableDataFramepublic boolean saveAs(DataContainer dataContainer)
saveAs in interface hec.dataTable.SavableDataFramepublic int save(java.util.Vector dataContainers)
save in interface hec.dataTable.SavableDataFramepublic boolean saveAs(java.util.Vector dataContainers)
saveAs in interface hec.dataTable.SavableDataFramepublic boolean recordExists(java.lang.String pathname)
pathname exists in this filepathname - the DSS pathname to check