Class HighWaterMarkChangeDetectionPolicy

java.lang.Object
com.azure.search.documents.indexes.models.DataChangeDetectionPolicy
com.azure.search.documents.indexes.models.HighWaterMarkChangeDetectionPolicy
All Implemented Interfaces:
com.azure.json.JsonSerializable<DataChangeDetectionPolicy>

public final class HighWaterMarkChangeDetectionPolicy extends DataChangeDetectionPolicy
Defines a data change detection policy that captures changes based on the value of a high water mark column.
  • Constructor Details

    • HighWaterMarkChangeDetectionPolicy

      public HighWaterMarkChangeDetectionPolicy(String highWaterMarkColumnName)
      Creates an instance of HighWaterMarkChangeDetectionPolicy class.
      Parameters:
      highWaterMarkColumnName - the highWaterMarkColumnName value to set.
  • Method Details

    • getOdataType

      public String getOdataType()
      Get the odataType property: A URI fragment specifying the type of data change detection policy.
      Overrides:
      getOdataType in class DataChangeDetectionPolicy
      Returns:
      the odataType value.
    • getHighWaterMarkColumnName

      public String getHighWaterMarkColumnName()
      Get the highWaterMarkColumnName property: The name of the high water mark column.
      Returns:
      the highWaterMarkColumnName value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DataChangeDetectionPolicy>
      Overrides:
      toJson in class DataChangeDetectionPolicy
      Throws:
      IOException
    • fromJson

      public static HighWaterMarkChangeDetectionPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of HighWaterMarkChangeDetectionPolicy from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of HighWaterMarkChangeDetectionPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the HighWaterMarkChangeDetectionPolicy.