Interface IndexerBatchStrategy

  • All Known Implementing Classes:
    DefaultIndexerBatchStrategy

    public interface IndexerBatchStrategy
    Strategy for performing batch indexing.
    • Method Detail

      • setExternalIndexOperation

        void setExternalIndexOperation​(boolean externalIndexOperation)
        Sets the external index operation to be used.
        Parameters:
        externalIndexOperation - - the external index operation
      • setFacetSearchConfig

        void setFacetSearchConfig​(FacetSearchConfig facetSearchConfig)
        Sets the facet search config to be used.
        Parameters:
        facetSearchConfig - - the facet search config to be used
      • setIndex

        void setIndex​(Index index)
        Sets the index to be used
        Parameters:
        index - - the index to be used
      • setIndexedProperties

        void setIndexedProperties​(java.util.Collection<IndexedProperty> indexedProperties)
        Sets the indexed properties to be used
        Parameters:
        indexedProperties - - the indexed properties to be used
      • setIndexedType

        void setIndexedType​(IndexedType indexedType)
        Sets the indexed type to be used
        Parameters:
        indexedType - - the indexed type to be used
      • setIndexerHints

        void setIndexerHints​(java.util.Map<java.lang.String,​java.lang.String> indexerHints)
        Sets the indexer hints to be used
        Parameters:
        indexerHints - - the indexer hints to be used
      • setIndexOperation

        void setIndexOperation​(IndexOperation indexOperation)
        Sets the index operation to be used
        Parameters:
        indexOperation - - the index operation to be used
      • setIndexOperationId

        void setIndexOperationId​(long indexOperationId)
        Sets the indexed operation id to be used
        Parameters:
        indexOperationId - - the indexed operation id to be used
      • setPks

        void setPks​(java.util.List<PK> pks)
        Sets the pks to be used
        Parameters:
        pks - - the pks to be used
      • execute

        void execute()
              throws java.lang.InterruptedException,
                     IndexerException
        Executes the strategy.
        Throws:
        java.lang.InterruptedException - throw if a thread is interrupted
        IndexerException - if an error occurs during the strategy execution