Package edu.ie3.datamodel.io.source.csv
Class CsvTimeSeriesMetaInformationSource
java.lang.Object
edu.ie3.datamodel.io.source.csv.CsvDataSource
edu.ie3.datamodel.io.source.csv.CsvTimeSeriesMetaInformationSource
- All Implemented Interfaces:
DataSource
,TimeSeriesMetaInformationSource
public class CsvTimeSeriesMetaInformationSource
extends CsvDataSource
implements TimeSeriesMetaInformationSource
CSV implementation for retrieving
TimeSeriesMetaInformationSource
from input directory
structures-
Field Summary
Fields inherited from class edu.ie3.datamodel.io.source.csv.CsvDataSource
connector, csvSep, FIELDS_TO_VALUES_MAP, log, NODE, NODE_A, NODE_B, OPERATOR, TYPE
-
Constructor Summary
ConstructorDescriptionCsvTimeSeriesMetaInformationSource
(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy) Creates a time series type source -
Method Summary
Modifier and TypeMethodDescriptionGet a mapping from time seriesUUID
to its meta informationIndividualTimeSeriesMetaInformation
getTimeSeriesMetaInformation
(UUID timeSeriesUuid) Get an option on the given time series meta informationMethods inherited from class edu.ie3.datamodel.io.source.csv.CsvDataSource
assetInputEntityDataStream, assetInputEntityDataStream, buildStreamWithFieldsToAttributesMap, buildStreamWithFieldsToAttributesMap, csvRowFieldValueMapping, distinctRowsWithLog, findFirstEntityByUuid, getAssetType, isPresentCollectIfNot, logSkippingWarning, nodeAssetEntityStream, nodeAssetInputEntityDataStream, parseCsvRow, printInvalidElementInformation, saveMapGet, simpleEntityDataStream
-
Constructor Details
-
CsvTimeSeriesMetaInformationSource
public CsvTimeSeriesMetaInformationSource(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy) Creates a time series type source- Parameters:
csvSep
- the CSV separatorfolderPath
- path that time series reside infileNamingStrategy
- the file naming strategy
-
-
Method Details
-
getTimeSeriesMetaInformation
Description copied from interface:TimeSeriesMetaInformationSource
Get a mapping from time seriesUUID
to its meta informationIndividualTimeSeriesMetaInformation
- Specified by:
getTimeSeriesMetaInformation
in interfaceTimeSeriesMetaInformationSource
- Returns:
- that mapping
-
getTimeSeriesMetaInformation
public Optional<IndividualTimeSeriesMetaInformation> getTimeSeriesMetaInformation(UUID timeSeriesUuid) Description copied from interface:TimeSeriesMetaInformationSource
Get an option on the given time series meta information- Specified by:
getTimeSeriesMetaInformation
in interfaceTimeSeriesMetaInformationSource
- Parameters:
timeSeriesUuid
- Unique identifier of the time series in question- Returns:
- An Option on the meta information
-