Interface ISourceBigDataPersister<S extends Source<?>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addContextDocuments​(java.lang.String sourceId, java.lang.String contextId)
      Adds all documents corresponding to the given source and context to the portal big data repository.
      void addDocuments​(S source, java.util.Collection<? extends ISourceData> data)
      Adds documents to the portal big data repository for the given source data entries.
      void addDocuments​(S source, ISourceData... data)
      Adds documents to the portal big data repository for the given source data entries.
      void deleteBigData​(S source)
      Deletes all structure stored in the portal big data repository relative to a source.
      void deleteContextDocuments​(java.lang.String sourceId, java.lang.String contextId)
      Deletes documents from the portal big data repository for the specified source in a context.
      void deleteDocuments​(S source, java.lang.String... itemIds)
      Deletes documents from the portal big data repository that corresponds to the data with the given primary key values.
      void deleteDocuments​(S source, java.util.Collection<java.lang.String> itemIds)
      Deletes documents from the portal big data repository that corresponds to the data with the given primary key values.
      void initBigData​(S source)
      Initializes the big data repository with elements specifics to a source.
      void updateBigData​(S source)
      Updates the big data repository according to a 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​(java.lang.String sourceId,
                                 java.lang.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​(java.lang.String sourceId,
                                    java.lang.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,
                          java.util.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,
                             java.lang.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,
                             java.util.Collection<java.lang.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