Interface DataSource

  • All Known Implementing Classes:
    AbstractDataSource

    public interface DataSource
    DataSource the dataObject type
    • 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