Class CsvResultEntitySource
- All Implemented Interfaces:
ResultEntitySource
ResultEntity container from
.csv files.
This source is not buffered which means each call on a getter method always tries to read all data is necessary to return the requested objects in a hierarchical cascading way.
The resulting sets are always unique on object and UUID base (with distinct UUIDs).
- Since:
- 22 June 2021
-
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
ConstructorsConstructorDescriptionCsvResultEntitySource(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy) CsvResultEntitySource(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy, String dtfPattern) -
Method Summary
Modifier and TypeMethodDescriptionReturns a unique set ofBmResultinstances.Returns a unique set ofChpResultinstances.Returns a unique set ofCylindricalStorageResultinstances.Returns a unique set ofEmResultinstances.Returns a unique set ofEvcsResultinstances.Returns a unique set ofEvResultinstances.Returns a unique set ofFixedFeedInResultinstances.Returns a unique set ofFlexOptionsResultinstances.Returns a unique set ofHpResultinstances.Returns a unique set ofLineResultinstances.Returns a unique set ofLoadResultinstances.Returns a unique set ofNodeResultinstances.Returns a unique set ofPvResultinstances.Returns a unique set ofStorageResultinstances.Returns a unique set ofSwitchResultinstances.Returns a unique set ofThermalHouseResultinstances.Returns a unique set ofTransformer2WResultinstances.Returns a unique set ofTransformer3WResultinstances.Returns a unique set ofWecResultinstances.Methods 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
-
CsvResultEntitySource
public CsvResultEntitySource(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy) -
CsvResultEntitySource
public CsvResultEntitySource(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy, String dtfPattern)
-
-
Method Details
-
getNodeResults
Description copied from interface:ResultEntitySourceReturns a unique set ofNodeResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedNodeResultwhich has to be checked manually, asNodeResult.equals(Object)is NOT restricted by the uuid ofNodeResult.- Specified by:
getNodeResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
NodeResultentities
-
getSwitchResults
Description copied from interface:ResultEntitySourceReturns a unique set ofSwitchResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedSwitchResultwhich has to be checked manually, asSwitchResult.equals(Object)is NOT restricted by the uuid ofSwitchResult.- Specified by:
getSwitchResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
SwitchResultentities
-
getLineResults
Description copied from interface:ResultEntitySourceReturns a unique set ofLineResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedLineResultwhich has to be checked manually, asConnectorResult.equals(Object)is NOT restricted by the uuid ofLineResult.- Specified by:
getLineResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
LineResultentities
-
getTransformer2WResultResults
Description copied from interface:ResultEntitySourceReturns a unique set ofTransformer2WResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedTransformer2WResultwhich has to be checked manually, asTransformerResult.equals(Object)is NOT restricted by the uuid ofTransformer2WResult.- Specified by:
getTransformer2WResultResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
Transformer2WResultentities
-
getTransformer3WResultResults
Description copied from interface:ResultEntitySourceReturns a unique set ofTransformer3WResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedTransformer3WResultwhich has to be checked manually, asTransformer3WResult.equals(Object)is NOT restricted by the uuid ofTransformer3WResult.- Specified by:
getTransformer3WResultResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
Transformer3WResultentities
-
getLoadResults
Description copied from interface:ResultEntitySourceReturns a unique set ofLoadResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedLoadResultwhich has to be checked manually, asSystemParticipantResult.equals(Object)is NOT restricted by the uuid ofLoadResult.- Specified by:
getLoadResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
LoadResultentities
-
getPvResults
Description copied from interface:ResultEntitySourceReturns a unique set ofPvResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedPvResultwhich has to be checked manually, asSystemParticipantResult.equals(Object)is NOT restricted by the uuid ofPvResult.- Specified by:
getPvResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
PvResultentities
-
getFixedFeedInResults
Description copied from interface:ResultEntitySourceReturns a unique set ofFixedFeedInResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedFixedFeedInResultwhich has to be checked manually, asSystemParticipantResult.equals(Object)is NOT restricted by the uuid ofFixedFeedInResult.- Specified by:
getFixedFeedInResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
FixedFeedInResultentities
-
getBmResults
Description copied from interface:ResultEntitySourceReturns a unique set ofBmResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedBmResultwhich has to be checked manually, asSystemParticipantResult.equals(Object)is NOT restricted by the uuid ofBmResult.- Specified by:
getBmResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
BmResultentities
-
getChpResults
Description copied from interface:ResultEntitySourceReturns a unique set ofChpResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedChpResultwhich has to be checked manually, asSystemParticipantWithHeatResult.equals(Object)is NOT restricted by the uuid ofChpResult.- Specified by:
getChpResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
ChpResultentities
-
getWecResults
Description copied from interface:ResultEntitySourceReturns a unique set ofWecResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedWecResultwhich has to be checked manually, asSystemParticipantResult.equals(Object)is NOT restricted by the uuid ofWecResult.- Specified by:
getWecResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
WecResultentities
-
getStorageResults
Description copied from interface:ResultEntitySourceReturns a unique set ofStorageResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedStorageResultwhich has to be checked manually, asElectricalEnergyStorageResult.equals(Object)is NOT restricted by the uuid ofStorageResult.- Specified by:
getStorageResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
StorageResultentities
-
getEvcsResults
Description copied from interface:ResultEntitySourceReturns a unique set ofEvcsResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedEvcsResultwhich has to be checked manually, asSystemParticipantResult.equals(Object)is NOT restricted by the uuid ofEvcsResult.- Specified by:
getEvcsResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
EvcsResultentities
-
getEvResults
Description copied from interface:ResultEntitySourceReturns a unique set ofEvResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedEvResultwhich has to be checked manually, asElectricalEnergyStorageResult.equals(Object)is NOT restricted by the uuid ofEvResult.- Specified by:
getEvResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
EvResultentities
-
getHpResults
Description copied from interface:ResultEntitySourceReturns a unique set ofHpResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedHpResultwhich has to be checked manually, asSystemParticipantWithHeatResult.equals(Object)is NOT restricted by the uuid ofHpResult.- Specified by:
getHpResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
HpResultentities
-
getThermalHouseResults
Description copied from interface:ResultEntitySourceReturns a unique set ofThermalHouseResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedThermalHouseResultwhich has to be checked manually, asThermalHouseResult.equals(Object)is NOT restricted by the uuid ofThermalHouseResult.- Specified by:
getThermalHouseResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
ThermalHouseResultentities
-
getCylindricalStorageResult
Description copied from interface:ResultEntitySourceReturns a unique set ofCylindricalStorageResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedCylindricalStorageResultwhich has to be checked manually, asCylindricalStorageResult.equals(Object)is NOT restricted by the uuid ofCylindricalStorageResult.- Specified by:
getCylindricalStorageResultin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
CylindricalStorageResultentities
-
getEmResults
Description copied from interface:ResultEntitySourceReturns a unique set ofEmResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedEmResultwhich has to be checked manually, asSystemParticipantResult.equals(Object)is NOT restricted by the uuid ofEmResult.- Specified by:
getEmResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
EmResultentities
-
getFlexOptionsResults
Description copied from interface:ResultEntitySourceReturns a unique set ofFlexOptionsResultinstances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUIDuniqueness of the providedFlexOptionsResultwhich has to be checked manually, asFlexOptionsResult.equals(Object)is NOT restricted by the uuid ofFlexOptionsResult.- Specified by:
getFlexOptionsResultsin interfaceResultEntitySource- Returns:
- a set of object and uuid unique
FlexOptionsResultentities
-