public class TimeSeriesLoaderBE
extends java.lang.Object
Constructor and Description |
---|
TimeSeriesLoaderBE(TsDB tsdb,
long minTimestamp) |
Modifier and Type | Method and Description |
---|---|
void |
loadDirectory_with_stations_flat(java.nio.file.Path rootPath)
Loads directory with station directories with dat-files (tsm structure)
|
void |
loadDirectoryOfOneStation(Station station,
java.nio.file.Path stationPath)
Reads all UDBF-Files of one directory and inserts the data entries into database
|
void |
loadWithPrefixFilenameMapOfOneStation(Station station,
java.util.TreeMap<java.lang.String,java.util.List<java.nio.file.Path>> prefixFilenameMap) |
static UDBFTimestampSeries |
readUDBFTimeSeries(java.lang.String stationID_info,
java.nio.file.Path filename)
Reads an UDBF-File and return structured data as UDBFTimeSeries Object.
|
java.util.List<DataRow> |
translateToEvents(Station station,
UDBFTimestampSeries udbfTimeSeries,
long minTimestamp,
java.lang.String[][] outInfoTranslatedSensorNames)
Convertes rows of input file data into events with matching schema of the event stream of this plotID
|
public TimeSeriesLoaderBE(TsDB tsdb, long minTimestamp)
public void loadDirectory_with_stations_flat(java.nio.file.Path rootPath)
rootPath
- public void loadDirectoryOfOneStation(Station station, java.nio.file.Path stationPath)
stationPath
- public void loadWithPrefixFilenameMapOfOneStation(Station station, java.util.TreeMap<java.lang.String,java.util.List<java.nio.file.Path>> prefixFilenameMap)
public static UDBFTimestampSeries readUDBFTimeSeries(java.lang.String stationID_info, java.nio.file.Path filename) throws java.io.IOException
filename
- java.io.IOException
public java.util.List<DataRow> translateToEvents(Station station, UDBFTimestampSeries udbfTimeSeries, long minTimestamp, java.lang.String[][] outInfoTranslatedSensorNames)
udbfTimeSeries
- minTimestamp
- minimal timestamp that should be included in result