Interface EntityExtractor
- All Known Implementing Classes:
EntityExtractorImpl
public interface EntityExtractor
Provides methods to extract entities and populate their properties by values from the imported data
-
Method Summary
Modifier and TypeMethodDescriptionextractEntities
(ImportConfiguration importConfiguration, ImportedData importedData) Creates an entity for eachImportedDataItem
from the specified imported data.extractEntities
(ImportConfiguration importConfiguration, List<ImportedDataItem> importedDataItems) Creates an entity for eachImportedDataItem
from the specified list.extractEntity
(ImportConfiguration importConfiguration, ImportedDataItem dataItem) Creates an entity usingImportConfiguration.entityClass
and populates the properties for which mappings are set in import configuration.
-
Method Details
-
extractEntity
EntityExtractionResult extractEntity(ImportConfiguration importConfiguration, ImportedDataItem dataItem) Creates an entity usingImportConfiguration.entityClass
and populates the properties for which mappings are set in import configuration. Values for the properties are got by processing the raw values fromImportedDataItem
.- Parameters:
importConfiguration
- import configurationdataItem
- source of raw values for the entity- Returns:
- extraction result with entity which properties are populated by values
-
extractEntities
List<EntityExtractionResult> extractEntities(ImportConfiguration importConfiguration, ImportedData importedData) Creates an entity for eachImportedDataItem
from the specified imported data.- Parameters:
importConfiguration
- import configurationimportedData
- imported data- Returns:
- extraction results for each extracted entity
-
extractEntities
List<EntityExtractionResult> extractEntities(ImportConfiguration importConfiguration, List<ImportedDataItem> importedDataItems) Creates an entity for eachImportedDataItem
from the specified list.- Parameters:
importConfiguration
- import configurationimportedDataItems
- imported data items- Returns:
- extraction results for each extracted entity
-