Share via


HighWaterMarkChangeDetectionPolicy Class

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 Summary

Constructor Description
HighWaterMarkChangeDetectionPolicy(String highWaterMarkColumnName)

Creates an instance of HighWaterMarkChangeDetectionPolicy class.

Method Summary

Modifier and Type Method and Description
static HighWaterMarkChangeDetectionPolicy fromJson(JsonReader jsonReader)

Reads an instance of HighWaterMarkChangeDetectionPolicy from the JsonReader.

String getHighWaterMarkColumnName()

Get the highWaterMarkColumnName property: The name of the high water mark column.

String getOdataType()

Get the odataType property: A URI fragment specifying the type of data change detection policy.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from DataChangeDetectionPolicy

Methods inherited from java.lang.Object

Constructor Details

HighWaterMarkChangeDetectionPolicy

public HighWaterMarkChangeDetectionPolicy(String highWaterMarkColumnName)

Creates an instance of HighWaterMarkChangeDetectionPolicy class.

Parameters:

highWaterMarkColumnName - the highWaterMarkColumnName value to set.

Method Details

fromJson

public static HighWaterMarkChangeDetectionPolicy fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getHighWaterMarkColumnName

public String getHighWaterMarkColumnName()

Get the highWaterMarkColumnName property: The name of the high water mark column.

Returns:

the highWaterMarkColumnName value.

getOdataType

public String getOdataType()

Get the odataType property: A URI fragment specifying the type of data change detection policy.

Overrides:

HighWaterMarkChangeDetectionPolicy.getOdataType()

Returns:

the odataType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

HighWaterMarkChangeDetectionPolicy.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to