Package edu.ie3.datamodel.io.sink
Interface InputDataSink
- All Superinterfaces:
DataSink
- All Known Implementing Classes:
CsvFileSink
-
Method Summary
Modifier and TypeMethodDescription<C extends InputEntity>
voidpersistAllIgnoreNested
(Collection<C> entities) Should implement the entry point of a data sink to persist multiple input entities in a collection.<C extends InputEntity>
voidpersistAllIncludeNested
(Collection<C> entities) Should offer a clear alternative topersistAllIgnoreNested(java.util.Collection<C>)
if the nested entities of the input entities are supposed to be persisted as well.<C extends InputEntity>
voidpersistIgnoreNested
(C entity) Should implement the entry point of a data sink to persist an input entity.<C extends InputEntity>
voidpersistIncludeNested
(C entity) Should offer a clear alternative topersistIgnoreNested(C)
if the nested entities of an input entity are supposed to be persisted as well.void
persistJointGrid
(JointGridContainer jointGridContainer) Should implement the entry point of a data sink to persist a wholeJointGridContainer
Methods inherited from interface edu.ie3.datamodel.io.sink.DataSink
persist, persistAll, persistTimeSeries, shutdown
-
Method Details
-
persistIgnoreNested
Should implement the entry point of a data sink to persist an input entity. In contrast toDataSink.persist(C)
andpersistIncludeNested(C)
, this method should not take care about the extraction process of nested entities (if any) but only persist the uuid of the nested entity. This might speed up things a little bit because of missing if-/else-clauses but can also lead to missing persisted data that should be persisted, but is not e.g. nested types that are not available anymore afterwards. It might be useful especially for all entities without nested entities. For all doubts about if the provided entity contains needed nested data or notDataSink.persist(UniqueEntity)
is the recommended method to be used.- Type Parameters:
C
- bounded to be all input entities. Handling of the entities is normally then executed by aInputEntityProcessor
- Parameters:
entity
- the entity that should be persisted
-
persistAllIgnoreNested
Should implement the entry point of a data sink to persist multiple input entities in a collection. In contrast toDataSink.persistAll(Collection)
andpersistAllIncludeNested(java.util.Collection<C>)
, this method should not take care about the extraction process of nested entities (if any) but only persist the uuid of the nested entity. This might speed up things a little bit because of missing if-/else-clauses but but can also lead to missing persisted data that should be persisted, but is not e.g. nested types that are not available anymore afterwards. It might be useful especially for all entities without nested entities. For all doubts about if the provided entity contains needed nested data or notDataSink.persistAll(Collection)
is the recommended method to be used.- Type Parameters:
C
- bounded to be all unique entities. Handling of the entities is normally then executed by aInputEntityProcessor
- Parameters:
entities
- the entities that should be persisted
-
persistIncludeNested
Should offer a clear alternative topersistIgnoreNested(C)
if the nested entities of an input entity are supposed to be persisted as well. However this might take longer as additional entities have to be extracted and persisted.- Type Parameters:
C
- bounded to be all input entities. Handling of specific entities is normally then executed by a specificInputEntityProcessor
- Parameters:
entity
- the entity that should be persisted including its nested entities
-
persistAllIncludeNested
Should offer a clear alternative topersistAllIgnoreNested(java.util.Collection<C>)
if the nested entities of the input entities are supposed to be persisted as well. However this might take longer as additional entities have to be extracted and persisted.- Type Parameters:
C
- bounded to be all unique entities. Handling of the entities is normally then executed by aInputEntityProcessor
- Parameters:
entities
- the entities that should be persisted including its nested entities
-
persistJointGrid
Should implement the entry point of a data sink to persist a wholeJointGridContainer
- Parameters:
jointGridContainer
- theJointGridContainer
that should be persisted
-