Interface DataSource

All Known Implementing Classes:
AbstractDataSource

public interface DataSource
DataSource the dataObject type
  • Field Details

    • PROPERTY_BULK_BATCH_SIZE

      static final String 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

      List<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

      List<DataObject> getDataObjects(List<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

      Iterator<DataObject> getDataObjectsIterator()
      An iterator of data object
      Returns:
      an Iterator
    • getDataObjectsIterator

      Iterator<DataObject> getDataObjectsIterator(List<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

      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