Class IndexAction<T>


  • public final class IndexAction<T>
    extends Object
    Represents an index action that operates on a document.
    • Constructor Detail

      • IndexAction

        public IndexAction()
    • Method Detail

      • getDocument

        public T getDocument()
        Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.
        Returns:
        the document value.
      • setDocument

        public IndexAction<T> setDocument​(T document)
        Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.
        Parameters:
        document - the document value to set.
        Returns:
        the IndexAction object itself.
      • getActionType

        public IndexActionType getActionType()
        Get the actionType property: The operation to perform on a document in an indexing batch. Possible values include: 'Upload', 'Merge', 'MergeOrUpload', 'Delete'.
        Returns:
        the actionType value.
      • setActionType

        public IndexAction<T> setActionType​(IndexActionType actionType)
        Set the actionType property: The operation to perform on a document in an indexing batch. Possible values include: 'Upload', 'Merge', 'MergeOrUpload', 'Delete'.
        Parameters:
        actionType - the actionType value to set.
        Returns:
        the IndexAction object itself.