Class AbstractDataSource
java.lang.Object
fr.paris.lutece.plugins.elasticdata.business.AbstractDataSource
- All Implemented Interfaces:
DataSource
AbstractDataSource
-
Field Summary
Fields inherited from interface fr.paris.lutece.plugins.elasticdata.business.DataSource
BATCH_SIZE, PROPERTY_BULK_BATCH_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the BatchSizeAn 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()Returns the Idreturn the IndexingStatus of this datasourceReturns the MappingsgetName()Returns the NameReturns the TargetIndexNamebooleanReturns the LocalizablevoidsetBatchSize(int nBatchSize) Sets the BatchSizevoidsetExternalAttributesProvider(Collection<IDataSourceExternalAttributesProvider> colExternalAttributesProvider) Set the external attributes provider for the data sourcevoidsetFullIndexingDaemon(boolean bFullIndexingDaemon) Sets the FullIndexingDaemonvoidSets the IdvoidsetLocalizable(boolean bLocalizable) Sets the LocalizablevoidsetMappings(String strMappings) Sets the MappingsvoidSets the NamevoidsetTargetIndexName(String strTargetIndexName) Sets the TargetIndexNamebooleanReturns the FullIndexingDaemonMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.elasticdata.business.DataSource
getDataObjects, getIdDataObjects
-
Constructor Details
-
AbstractDataSource
public AbstractDataSource()
-
-
Method Details
-
getId
Returns the Id- Specified by:
getIdin interfaceDataSource- Returns:
- The Id
-
setId
Sets the Id- Parameters:
strId- The Id
-
getName
Returns the Name- Specified by:
getNamein interfaceDataSource- Returns:
- The Name
-
setName
Sets the Name- Parameters:
strName- The Name
-
getTargetIndexName
Returns the TargetIndexName- Specified by:
getTargetIndexNamein interfaceDataSource- Returns:
- The TargetIndexName
-
setTargetIndexName
Sets the TargetIndexName- Parameters:
strTargetIndexName- The TargetIndexName
-
getBatchSize
public int getBatchSize()Returns the BatchSize- Specified by:
getBatchSizein interfaceDataSource- Returns:
- The BatchSize
-
setBatchSize
public void setBatchSize(int nBatchSize) Sets the BatchSize- Parameters:
nBatchSize- The BatchSize
-
isLocalizable
public boolean isLocalizable()Returns the Localizable- Specified by:
isLocalizablein interfaceDataSource- Returns:
- The Localizable
-
setLocalizable
public void setLocalizable(boolean bLocalizable) Sets the Localizable- Parameters:
bLocalizable- The Localizable
-
getMappings
Returns the Mappings- Specified by:
getMappingsin interfaceDataSource- Returns:
- The Mappings
-
setMappings
Sets the Mappings- Parameters:
strMappings- The Mappings
-
usesFullIndexingDaemon
public boolean usesFullIndexingDaemon()Returns the FullIndexingDaemon- Specified by:
usesFullIndexingDaemonin interfaceDataSource- Returns:
- The FullIndexingDaemon
-
setFullIndexingDaemon
public void setFullIndexingDaemon(boolean bFullIndexingDaemon) Sets the FullIndexingDaemon- Parameters:
bFullIndexingDaemon- The FullIndexingDaemon
-
getDataObjectsIterator
An iterator of data object- Specified by:
getDataObjectsIteratorin interfaceDataSource- Returns:
- an Iterator
-
getDataObjectsIterator
An iterator of data object from a list of data objects identifiers- Specified by:
getDataObjectsIteratorin interfaceDataSource- Returns:
- an Iterator
-
getExternalAttributesProvider
Get the external providers of attributes for DataSources- Specified by:
getExternalAttributesProviderin interfaceDataSource- Returns:
- the list of DataSourceAttributesProvider
-
getIndexingStatus
return the IndexingStatus of this datasource- Specified by:
getIndexingStatusin interfaceDataSource- Returns:
- IndexingStatus the Indexing status
-
setExternalAttributesProvider
public void setExternalAttributesProvider(Collection<IDataSourceExternalAttributesProvider> colExternalAttributesProvider) Set the external attributes provider for the data source- Parameters:
colExternalAttributesProvider-
-