Interface DataSource
-
- All Known Implementing Classes:
AbstractDataSource
public interface DataSourceDataSource the dataObject type
-
-
Field Summary
Fields Modifier and Type Field Description static intBATCH_SIZEstatic java.lang.StringPROPERTY_BULK_BATCH_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetBatchSize()Returns the BatchSizejava.util.List<DataObject>getDataObjects(java.util.List<java.lang.String> listIdDataObjects)Get the full data objects from given list of idsjava.util.Iterator<DataObject>getDataObjectsIterator()An iterator of data objectjava.util.Iterator<DataObject>getDataObjectsIterator(java.util.List<java.lang.String> listIdDataObjects)An iterator of data object from a list of data objects identifiersjava.util.Collection<IDataSourceExternalAttributesProvider>getExternalAttributesProvider()Get the external providers of attributes for DataSourcesjava.lang.StringgetId()The Data Source Idjava.util.List<java.lang.String>getIdDataObjects()Get the business id of all the data objects to fetchIndexingStatusgetIndexingStatus()return the IndexingStatus of this datasourcejava.lang.StringgetMappings()Get specific mappings for the Data Sourcejava.lang.StringgetName()The Data Source namejava.lang.StringgetTargetIndexName()The target index name to be createdbooleanisLocalizable()Contains Geo PointbooleanusesFullIndexingDaemon()Uses the full indexing daemon
-
-
-
Field Detail
-
PROPERTY_BULK_BATCH_SIZE
static final java.lang.String PROPERTY_BULK_BATCH_SIZE
- See Also:
- Constant Field Values
-
BATCH_SIZE
static final int BATCH_SIZE
-
-
Method Detail
-
getId
java.lang.String getId()
The Data Source Id- Returns:
- The Id
-
getName
java.lang.String getName()
The Data Source name- Returns:
- The name
-
getTargetIndexName
java.lang.String getTargetIndexName()
The target index name to be created- Returns:
- The index name
-
getIdDataObjects
java.util.List<java.lang.String> 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
java.util.List<DataObject> getDataObjects(java.util.List<java.lang.String> listIdDataObjects)
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
java.util.Iterator<DataObject> getDataObjectsIterator()
An iterator of data object- Returns:
- an Iterator
-
getDataObjectsIterator
java.util.Iterator<DataObject> getDataObjectsIterator(java.util.List<java.lang.String> listIdDataObjects)
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
java.lang.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
java.util.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
-
-