次の方法で共有


IndexAction<T> Class

  • java.lang.Object
    • com.azure.search.documents.models.IndexAction<T>

Type Parameters

T

The type of the document used in the indexing action.

public final class IndexAction

Represents an index action that operates on a document.

Constructor Summary

Constructor Description
IndexAction()

Creates an instance of IndexAction<T>.

Method Summary

Modifier and Type Method and Description
IndexActionType getActionType()

Get the actionType property: The operation to perform on a document in an indexing batch.

T getDocument()

Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.

IndexAction<T> setActionType(IndexActionType actionType)

Set the actionType property: The operation to perform on a document in an indexing batch.

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.

Methods inherited from java.lang.Object

Constructor Details

IndexAction

public IndexAction()

Creates an instance of IndexAction<T>.

Method Details

getActionType

public IndexActionType getActionType()

Get the actionType property: The operation to perform on a document in an indexing batch.

Returns:

the actionType value.

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.

setActionType

public IndexAction setActionType(IndexActionType actionType)

Set the actionType property: The operation to perform on a document in an indexing batch.

Parameters:

actionType - the actionType value to set.

Returns:

the IndexAction object itself.

setDocument

public IndexAction 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.

Applies to