Interface DataSource
- All Known Implementing Classes:
AbstractDataSource
public interface DataSource
DataSource the dataObject type
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the BatchSizegetDataObjects(List<String> listIdDataObjects) Get the full data objects from given list of idsAn iterator of data objectgetDataObjectsIterator(List<String> listIdDataObjects) An iterator of data object from a list of data objects identifiersGet the external providers of attributes for DataSourcesgetId()The Data Source IdGet the business id of all the data objects to fetchreturn the IndexingStatus of this datasourceGet specific mappings for the Data SourcegetName()The Data Source nameThe target index name to be createdbooleanContains Geo PointbooleanUses the full indexing daemon
-
Field Details
-
PROPERTY_BULK_BATCH_SIZE
- See Also:
-
BATCH_SIZE
static final int BATCH_SIZE
-
-
Method Details
-
getId
String getId()The Data Source Id- Returns:
- The Id
-
getName
String getName()The Data Source name- Returns:
- The name
-
getTargetIndexName
String getTargetIndexName()The target index name to be created- Returns:
- The index name
-
getIdDataObjects
Get the business id of all the data objects to fetch- Returns:
- collection of id of all the data objects of the datasource
-
getDataObjects
Get the full data objects from given list of ids- Parameters:
listIdDataObjects-- Returns:
- the collection of the data objects corresponsing to given list of id objects.
-
getDataObjectsIterator
Iterator<DataObject> getDataObjectsIterator()An iterator of data object- Returns:
- an Iterator
-
getDataObjectsIterator
An iterator of data object from a list of data objects identifiers- Returns:
- an Iterator
-
getBatchSize
default int getBatchSize()Returns the BatchSize- Returns:
- The BatchSize
-
getMappings
String getMappings()Get specific mappings for the Data Source- Returns:
- The mappings as JSON
-
isLocalizable
boolean isLocalizable()Contains Geo Point- Returns:
- true if localizable
-
usesFullIndexingDaemon
boolean usesFullIndexingDaemon()Uses the full indexing daemon- Returns:
- true if the datasource should be fully indexed by the daemon
-
getExternalAttributesProvider
Collection<IDataSourceExternalAttributesProvider> getExternalAttributesProvider()Get the external providers of attributes for DataSources- Returns:
- the list of DataSourceAttributesProvider
-
getIndexingStatus
IndexingStatus getIndexingStatus()return the IndexingStatus of this datasource- Returns:
- IndexingStatus the Indexing status
-