Package hec.heclib.dss
Class HecDss
java.lang.Object
hec.hecmath.DSSFile
hec.heclib.dss.HecDss
- Direct Known Subclasses:
HecDss
HecDss objects are used to retrieve and store data sets in a DSS file,
as well as several utility functions for DSS files. Data is retrieved
and stored using DataContainers. DataContainers are simple classes that are
database independent and are how most Hec classes exchange data.
-
Field Summary
Fields inherited from class hec.hecmath.DSSFile
_dataManager, _endTime, _filename, _irregularStoreMethod, _regularStoreMethod, _startTime, _trimMissing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected DataContainer
get
(DataReference dataSet) get
(DSSIdentifier dssId) Returns a condensed list of pathnames in the file This means that each data set is in one data reference, which spans all time for that set, regardless of the number of records.static boolean
getDssFilename
(String inputFilename, stringContainer outputFilename, boolean alwaysGetCanonical) Retrieves the path for an input DSS file name, adding the ".dss" extension if necessaryGets a unsorted list of all pathnames in the file (This can be time consuming, so don't do often)boolean
getTimeSeriesExtents
(String pathname, HecTime start, HecTime end) Gets the time of the first data and last data in a data set, (not just a single pathname)boolean
isOpened()
static HecDss
static HecDss
static HecDss
static HecDss
static HecDss
static HecDss
static HecDss
void
put
(DataContainer dataContainer) void
boolean
recordExists
(String pathname) check to see if the record specified bypathname
exists in this fileMethods inherited from class hec.hecmath.DSSFile
close, copyRecordsFrom, copyRecordsFrom, copyRecordsInto, copyRecordsInto, delete, delete, done, duplicateRecords, duplicateRecords, forceMultiUserAccess, getCatalogedPathnames, getCatalogedPathnames, getCatalogedPathnames, getCatalogedPathnames, getDataManager, getEndTime, getFilename, getIrregularStoreMethod, getRegularStoreMethod, getStartTime, getTrimMissing, isRemote, read, read, read, read, recordsUpdated, recordsUpdated, recordsUpdated, recordsUpdated, recordsUpdated, recordsUpdated, renameRecords, renameRecords, searchPathnames, setFilename, setIrregularStoreMethod, setRegularStoreMethod, setTimeWindow, setTimeWindow, setTrimMissing, write, write, write, write
-
Constructor Details
-
HecDss
-
-
Method Details
-
open
- Throws:
Exception
-
open
- Throws:
Exception
-
open
- Throws:
Exception
-
open
- Throws:
Exception
-
open
- Throws:
Exception
-
open
- Throws:
Exception
-
open
public static HecDss open(String dssFileName, boolean mustExist, boolean isRemote, int dssVersion) throws Exception - Throws:
Exception
-
getDssFilename
public static boolean getDssFilename(String inputFilename, stringContainer outputFilename, boolean alwaysGetCanonical) throws IOException Retrieves the path for an input DSS file name, adding the ".dss" extension if necessary- Parameters:
inputFilename
- The relative or absolute path of a DSS file, with or without the extensionoutputFilename
- The (possibly absolute) path of the DSS file with the extensionalwaysGetCanonical
- Specifies whether to retrieve the absolute path for the DSS file even if the file doesn't exist.- Returns:
- Whether the DSS file exists
- Throws:
IOException
-
isOpened
public boolean isOpened() -
get
- Throws:
Exception
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
put
- Throws:
Exception
-
put
- Throws:
Exception
-
getTimeSeriesExtents
Gets the time of the first data and last data in a data set, (not just a single pathname)- Parameters:
pathname
- Stringstart
- HecTime - time of first piece of dataend
- HecTime - time of last piece of data- Returns:
- boolean - true if found and time series; false if not TS
-
recordExists
Description copied from class:DSSFile
check to see if the record specified bypathname
exists in this file- Overrides:
recordExists
in classDSSFile
- Parameters:
pathname
- the DSS pathname to check- Returns:
- true if the record exists.
-
getPathnameList
Gets a unsorted list of all pathnames in the file (This can be time consuming, so don't do often)- Returns:
- Vector of strings with pathnames
-
getCondensedCatalog
Returns a condensed list of pathnames in the file This means that each data set is in one data reference, which spans all time for that set, regardless of the number of records. This is very intensive, requiring sorting and such, so use sparingly- Returns:
- Vector
-
checkForError
- Throws:
Exception
-