Class DefaultIndexerContext

    • Constructor Detail

      • DefaultIndexerContext

        public DefaultIndexerContext()
    • Method Detail

      • getIndexOperationId

        public long getIndexOperationId()
        Description copied from interface: IndexerContext
        Returns the index operation id.
        Specified by:
        getIndexOperationId in interface IndexerContext
        Returns:
        the index operation id
      • setIndexOperationId

        public void setIndexOperationId​(long indexOperationId)
      • setIndexOperation

        public void setIndexOperation​(IndexOperation indexOperation)
      • isExternalIndexOperation

        public boolean isExternalIndexOperation()
        Description copied from interface: IndexerContext
        Returns true if the index operation is external. An external operation does not use a default indexer query.
        Specified by:
        isExternalIndexOperation in interface IndexerContext
        Returns:
        true if the index operation is external, false otherwise
      • setExternalIndexOperation

        public void setExternalIndexOperation​(boolean externalIndexOperation)
      • setFacetSearchConfig

        public void setFacetSearchConfig​(FacetSearchConfig facetSearchConfig)
      • setIndexedType

        public void setIndexedType​(IndexedType indexedType)
      • setIndexedProperties

        public void setIndexedProperties​(java.util.Collection<IndexedProperty> indexedProperties)
      • getPks

        public java.util.List<PK> getPks()
        Description copied from interface: IndexerContext
        Returns the pks of the items to be indexed.
        Specified by:
        getPks in interface IndexerContext
        Returns:
        pks of the items to be indexed
      • setPks

        public void setPks​(java.util.List<PK> pks)
        Description copied from interface: IndexerContext
        Sets the pks of the items to be indexed.
        Specified by:
        setPks in interface IndexerContext
        Parameters:
        pks - - the pks of the items to be indexed
      • getIndex

        public Index getIndex()
        Description copied from interface: IndexerContext
        Returns the index to use during the indexer operation.
        Specified by:
        getIndex in interface IndexerContext
        Returns:
        the index to use
      • setIndex

        public void setIndex​(Index index)
        Description copied from interface: IndexerContext
        Sets the index to use during the indexer operation.
        Specified by:
        setIndex in interface IndexerContext
        Parameters:
        index - - the index to use
      • getIndexerHints

        public java.util.Map<java.lang.String,​java.lang.String> getIndexerHints()
        Description copied from interface: IndexerContext
        Returns a mutable Map that can be used to store indexer hints.
        Specified by:
        getIndexerHints in interface IndexerContext
        Returns:
        the map containing the indexer hints
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Description copied from interface: IndexerContext
        Returns a mutable Map that can be used to store attributes associated with this IndexerContext.
        Specified by:
        getAttributes in interface IndexerContext
        Returns:
        the map containing the attributes
      • addFailureException

        public void addFailureException​(java.lang.Exception exception)