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
ConstructorDescriptionCsvResultEntitySource
(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy) CsvResultEntitySource
(String csvSep, String folderPath, FileNamingStrategy fileNamingStrategy, String dtfPattern) -
Method Summary
Modifier and TypeMethodDescriptionReturns a unique set ofBmResult
instances.Returns a unique set ofChpResult
instances.Returns a unique set ofCylindricalStorageResult
instances.Returns a unique set ofEmResult
instances.Returns a unique set ofEvcsResult
instances.Returns a unique set ofEvResult
instances.Returns a unique set ofFixedFeedInResult
instances.Returns a unique set ofFlexOptionsResult
instances.Returns a unique set ofHpResult
instances.Returns a unique set ofLineResult
instances.Returns a unique set ofLoadResult
instances.Returns a unique set ofNodeResult
instances.Returns a unique set ofPvResult
instances.Returns a unique set ofStorageResult
instances.Returns a unique set ofSwitchResult
instances.Returns a unique set ofThermalHouseResult
instances.Returns a unique set ofTransformer2WResult
instances.Returns a unique set ofTransformer3WResult
instances.Returns a unique set ofWecResult
instances.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:ResultEntitySource
Returns a unique set ofNodeResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedNodeResult
which has to be checked manually, asNodeResult.equals(Object)
is NOT restricted by the uuid ofNodeResult
.- Specified by:
getNodeResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
NodeResult
entities
-
getSwitchResults
Description copied from interface:ResultEntitySource
Returns a unique set ofSwitchResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedSwitchResult
which has to be checked manually, asSwitchResult.equals(Object)
is NOT restricted by the uuid ofSwitchResult
.- Specified by:
getSwitchResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
SwitchResult
entities
-
getLineResults
Description copied from interface:ResultEntitySource
Returns a unique set ofLineResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedLineResult
which has to be checked manually, asConnectorResult.equals(Object)
is NOT restricted by the uuid ofLineResult
.- Specified by:
getLineResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
LineResult
entities
-
getTransformer2WResultResults
Description copied from interface:ResultEntitySource
Returns a unique set ofTransformer2WResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedTransformer2WResult
which has to be checked manually, asTransformerResult.equals(Object)
is NOT restricted by the uuid ofTransformer2WResult
.- Specified by:
getTransformer2WResultResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
Transformer2WResult
entities
-
getTransformer3WResultResults
Description copied from interface:ResultEntitySource
Returns a unique set ofTransformer3WResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedTransformer3WResult
which has to be checked manually, asTransformer3WResult.equals(Object)
is NOT restricted by the uuid ofTransformer3WResult
.- Specified by:
getTransformer3WResultResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
Transformer3WResult
entities
-
getLoadResults
Description copied from interface:ResultEntitySource
Returns a unique set ofLoadResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedLoadResult
which has to be checked manually, asSystemParticipantResult.equals(Object)
is NOT restricted by the uuid ofLoadResult
.- Specified by:
getLoadResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
LoadResult
entities
-
getPvResults
Description copied from interface:ResultEntitySource
Returns a unique set ofPvResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedPvResult
which has to be checked manually, asSystemParticipantResult.equals(Object)
is NOT restricted by the uuid ofPvResult
.- Specified by:
getPvResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
PvResult
entities
-
getFixedFeedInResults
Description copied from interface:ResultEntitySource
Returns a unique set ofFixedFeedInResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedFixedFeedInResult
which has to be checked manually, asSystemParticipantResult.equals(Object)
is NOT restricted by the uuid ofFixedFeedInResult
.- Specified by:
getFixedFeedInResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
FixedFeedInResult
entities
-
getBmResults
Description copied from interface:ResultEntitySource
Returns a unique set ofBmResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedBmResult
which has to be checked manually, asSystemParticipantResult.equals(Object)
is NOT restricted by the uuid ofBmResult
.- Specified by:
getBmResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
BmResult
entities
-
getChpResults
Description copied from interface:ResultEntitySource
Returns a unique set ofChpResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedChpResult
which has to be checked manually, asSystemParticipantWithHeatResult.equals(Object)
is NOT restricted by the uuid ofChpResult
.- Specified by:
getChpResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
ChpResult
entities
-
getWecResults
Description copied from interface:ResultEntitySource
Returns a unique set ofWecResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedWecResult
which has to be checked manually, asSystemParticipantResult.equals(Object)
is NOT restricted by the uuid ofWecResult
.- Specified by:
getWecResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
WecResult
entities
-
getStorageResults
Description copied from interface:ResultEntitySource
Returns a unique set ofStorageResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedStorageResult
which has to be checked manually, asElectricalEnergyStorageResult.equals(Object)
is NOT restricted by the uuid ofStorageResult
.- Specified by:
getStorageResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
StorageResult
entities
-
getEvcsResults
Description copied from interface:ResultEntitySource
Returns a unique set ofEvcsResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedEvcsResult
which has to be checked manually, asSystemParticipantResult.equals(Object)
is NOT restricted by the uuid ofEvcsResult
.- Specified by:
getEvcsResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
EvcsResult
entities
-
getEvResults
Description copied from interface:ResultEntitySource
Returns a unique set ofEvResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedEvResult
which has to be checked manually, asElectricalEnergyStorageResult.equals(Object)
is NOT restricted by the uuid ofEvResult
.- Specified by:
getEvResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
EvResult
entities
-
getHpResults
Description copied from interface:ResultEntitySource
Returns a unique set ofHpResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedHpResult
which has to be checked manually, asSystemParticipantWithHeatResult.equals(Object)
is NOT restricted by the uuid ofHpResult
.- Specified by:
getHpResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
HpResult
entities
-
getThermalHouseResults
Description copied from interface:ResultEntitySource
Returns a unique set ofThermalHouseResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedThermalHouseResult
which has to be checked manually, asThermalHouseResult.equals(Object)
is NOT restricted by the uuid ofThermalHouseResult
.- Specified by:
getThermalHouseResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
ThermalHouseResult
entities
-
getCylindricalStorageResult
Description copied from interface:ResultEntitySource
Returns a unique set ofCylindricalStorageResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedCylindricalStorageResult
which has to be checked manually, asCylindricalStorageResult.equals(Object)
is NOT restricted by the uuid ofCylindricalStorageResult
.- Specified by:
getCylindricalStorageResult
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
CylindricalStorageResult
entities
-
getEmResults
Description copied from interface:ResultEntitySource
Returns a unique set ofEmResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedEmResult
which has to be checked manually, asSystemParticipantResult.equals(Object)
is NOT restricted by the uuid ofEmResult
.- Specified by:
getEmResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
EmResult
entities
-
getFlexOptionsResults
Description copied from interface:ResultEntitySource
Returns a unique set ofFlexOptionsResult
instances.This set has to be unique in the sense of object uniqueness but also in the sense of
UUID
uniqueness of the providedFlexOptionsResult
which has to be checked manually, asFlexOptionsResult.equals(Object)
is NOT restricted by the uuid ofFlexOptionsResult
.- Specified by:
getFlexOptionsResults
in interfaceResultEntitySource
- Returns:
- a set of object and uuid unique
FlexOptionsResult
entities
-