Jagamisviis:


ChangeFeedProcessorItem Class

  • java.lang.Object
    • com.azure.cosmos.models.ChangeFeedProcessorItem

public final class ChangeFeedProcessorItem

Change Feed processor item. Supports current and previous items through JsonNode structure. Caller is recommended to type cast JsonNode to cosmos item structure.

Constructor Summary

Constructor Description
ChangeFeedProcessorItem()

Method Summary

Modifier and Type Method and Description
ChangeFeedMetaData getChangeFeedMetaData()

Gets the change feed metadata.

com.fasterxml.jackson.databind.JsonNode getCurrent()

Gets the change feed current item.

com.fasterxml.jackson.databind.JsonNode getPrevious()

Gets the change feed previous item.

com.fasterxml.jackson.databind.JsonNode toJsonNode()

Helper API to convert this changeFeedProcessorItem instance to raw JsonNode format.

String toString()

Methods inherited from java.lang.Object

Constructor Details

ChangeFeedProcessorItem

public ChangeFeedProcessorItem()

Method Details

getChangeFeedMetaData

public ChangeFeedMetaData getChangeFeedMetaData()

Gets the change feed metadata.

Returns:

change feed metadata.

getCurrent

public JsonNode getCurrent()

Gets the change feed current item.

Returns:

change feed current item.

getPrevious

public JsonNode getPrevious()

Gets the change feed previous item. For delete operations, previous image is always going to be provided. The previous image on replace operations is not going to be exposed by default and requires account-level or container-level opt-in.

Returns:

change feed previous item.

toJsonNode

public JsonNode toJsonNode()

Helper API to convert this changeFeedProcessorItem instance to raw JsonNode format.

Returns:

jsonNode format of this changeFeedProcessorItem instance.

toString

public String toString()

Overrides:

ChangeFeedProcessorItem.toString()

Applies to