Class ChangeFeedProcessorItem

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

public final class ChangeFeedProcessorItem extends Object
Change Feed processor item. Supports current and previous items through JsonNode structure. Caller is recommended to type cast JsonNode to cosmos item structure.
  • Constructor Details

    • ChangeFeedProcessorItem

      public ChangeFeedProcessorItem()
  • Method Details

    • 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.
    • getChangeFeedMetaData

      public ChangeFeedMetaData getChangeFeedMetaData()
      Gets the change feed metadata.
      Returns:
      change feed metadata.
    • toJsonNode

      public JsonNode toJsonNode()
      Helper API to convert this changeFeedProcessorItem instance to raw JsonNode format.
      Returns:
      jsonNode format of this changeFeedProcessorItem instance.
      Throws:
      IllegalArgumentException - If conversion fails due to incompatible type; if so, root cause will contain underlying checked exception data binding functionality threw
    • toString

      public String toString()
      Overrides:
      toString in class Object