ChangeFeedProcessorItem Class
- java.
lang. Object - com.
azure. cosmos. models. ChangeFeedProcessorItem
- com.
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 |
|---|---|
|
Change |
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 change |
| 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:
getCurrent
public JsonNode getCurrent()
Gets the change feed current item.
Returns:
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:
toJsonNode
public JsonNode toJsonNode()
Helper API to convert this changeFeedProcessorItem instance to raw JsonNode format.
Returns:
toString
public String toString()
Overrides:
ChangeFeedProcessorItem.toString()