Interface ISourceBigDataPersister<S extends Source<?>>

    • Method Detail

      • initBigData

        void initBigData​(S source)
        Initializes the big data repository with elements specifics to a source.

        This method is called at some moment between the service registration and its use, or when the source big data will be recreated (after deleteBigData(S) is called to delete anything related to the source).

        This method will usually create the document types that addDocuments(S, lumis.doui.source.ISourceData...) for the source will use.

        Parameters:
        source - the source.
        Since:
        8.1.0
      • updateBigData

        void updateBigData​(S source)
        Updates the big data repository according to a source.

        This method is called at some moment between the service registration and its use.

        This method will usually update the document types for the source.

        Parameters:
        source - the source.
        Since:
        8.1.0
      • addContextDocuments

        void addContextDocuments​(String sourceId,
                                 String contextId)
        Adds all documents corresponding to the given source and context to the portal big data repository.

        This method is usually called when re-indexing a source after its documents have been deleted.

        Parameters:
        sourceId - the source identifier.
        contextId - the context identifier. Usually a service or service instance identifier.
        Since:
        10.0.0
      • deleteContextDocuments

        void deleteContextDocuments​(String sourceId,
                                    String contextId)
        Deletes documents from the portal big data repository for the specified source in a context.
        Parameters:
        sourceId - the source identifier.
        contextId - the context identifier.
        Since:
        10.0.0
      • addDocuments

        void addDocuments​(S source,
                          ISourceData... data)
        Adds documents to the portal big data repository for the given source data entries.
        Parameters:
        source - the source.
        data - the source's data to be used to generate the documents.
        Since:
        8.1.0
      • addDocuments

        void addDocuments​(S source,
                          Collection<? extends ISourceData> data)
        Adds documents to the portal big data repository for the given source data entries.
        Parameters:
        source - the source.
        data - the source's data to be used to generate the documents.
        Since:
        8.1.0
      • deleteDocuments

        void deleteDocuments​(S source,
                             String... itemIds)
        Deletes documents from the portal big data repository that corresponds to the data with the given primary key values.
        Parameters:
        source - the source.
        itemIds - the source data primary key values.
        Since:
        8.1.0
      • deleteDocuments

        void deleteDocuments​(S source,
                             Collection<String> itemIds)
        Deletes documents from the portal big data repository that corresponds to the data with the given primary key values.
        Parameters:
        source - the source.
        itemIds - the source data primary key values.
        Since:
        8.1.0