Class AbstractDataSource
- java.lang.Object
-
- fr.paris.lutece.plugins.elasticdata.business.AbstractDataSource
-
- All Implemented Interfaces:
DataSource
public abstract class AbstractDataSource extends java.lang.Object implements DataSource
AbstractDataSource
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.elasticdata.business.DataSource
BATCH_SIZE, PROPERTY_BULK_BATCH_SIZE
-
-
Constructor Summary
Constructors Constructor Description AbstractDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBatchSize()Returns the BatchSizejava.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()Returns the IdIndexingStatusgetIndexingStatus()return the IndexingStatus of this datasourcejava.lang.StringgetMappings()Returns the Mappingsjava.lang.StringgetName()Returns the Namejava.lang.StringgetTargetIndexName()Returns the TargetIndexNamebooleanisLocalizable()Returns the LocalizablevoidsetBatchSize(int nBatchSize)Sets the BatchSizevoidsetExternalAttributesProvider(java.util.Collection<IDataSourceExternalAttributesProvider> colExternalAttributesProvider)Set the external attributes provider for the data sourcevoidsetFullIndexingDaemon(boolean bFullIndexingDaemon)Sets the FullIndexingDaemonvoidsetId(java.lang.String strId)Sets the IdvoidsetLocalizable(boolean bLocalizable)Sets the LocalizablevoidsetMappings(java.lang.String strMappings)Sets the MappingsvoidsetName(java.lang.String strName)Sets the NamevoidsetTargetIndexName(java.lang.String strTargetIndexName)Sets the TargetIndexNamebooleanusesFullIndexingDaemon()Returns the FullIndexingDaemon-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.elasticdata.business.DataSource
getDataObjects, getIdDataObjects
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the Id- Specified by:
getIdin interfaceDataSource- Returns:
- The Id
-
setId
public void setId(java.lang.String strId)
Sets the Id- Parameters:
strId- The Id
-
getName
public java.lang.String getName()
Returns the Name- Specified by:
getNamein interfaceDataSource- Returns:
- The Name
-
setName
public void setName(java.lang.String strName)
Sets the Name- Parameters:
strName- The Name
-
getTargetIndexName
public java.lang.String getTargetIndexName()
Returns the TargetIndexName- Specified by:
getTargetIndexNamein interfaceDataSource- Returns:
- The TargetIndexName
-
setTargetIndexName
public void setTargetIndexName(java.lang.String strTargetIndexName)
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
public java.lang.String getMappings()
Returns the Mappings- Specified by:
getMappingsin interfaceDataSource- Returns:
- The Mappings
-
setMappings
public void setMappings(java.lang.String strMappings)
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
public java.util.Iterator<DataObject> getDataObjectsIterator()
An iterator of data object- Specified by:
getDataObjectsIteratorin interfaceDataSource- Returns:
- an Iterator
-
getDataObjectsIterator
public java.util.Iterator<DataObject> getDataObjectsIterator(java.util.List<java.lang.String> listIdDataObjects)
An iterator of data object from a list of data objects identifiers- Specified by:
getDataObjectsIteratorin interfaceDataSource- Returns:
- an Iterator
-
getExternalAttributesProvider
public java.util.Collection<IDataSourceExternalAttributesProvider> getExternalAttributesProvider()
Get the external providers of attributes for DataSources- Specified by:
getExternalAttributesProviderin interfaceDataSource- Returns:
- the list of DataSourceAttributesProvider
-
getIndexingStatus
public IndexingStatus getIndexingStatus()
return the IndexingStatus of this datasource- Specified by:
getIndexingStatusin interfaceDataSource- Returns:
- IndexingStatus the Indexing status
-
setExternalAttributesProvider
public void setExternalAttributesProvider(java.util.Collection<IDataSourceExternalAttributesProvider> colExternalAttributesProvider)
Set the external attributes provider for the data source- Parameters:
colExternalAttributesProvider-
-
-