Udostępnij za pośrednictwem


IsNotNullFilter Class

public final class IsNotNullFilter
extends Filter

IsNotNull Filter.

Constructor Summary

Constructor Description
IsNotNullFilter()

Creates an instance of IsNotNullFilter class.

Method Summary

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

Reads an instance of IsNotNullFilter from the JsonReader.

FilterOperatorType operatorType()

Get the operatorType property: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IsNotNullFilter withKey(String key)

Set the key property: The field/property in the event based on which you want to filter.

Methods inherited from Filter

Methods inherited from java.lang.Object

Constructor Details

IsNotNullFilter

public IsNotNullFilter()

Creates an instance of IsNotNullFilter class.

Method Details

fromJson

public static IsNotNullFilter fromJson(JsonReader jsonReader)

Reads an instance of IsNotNullFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IsNotNullFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the IsNotNullFilter.

operatorType

public FilterOperatorType operatorType()

Get the operatorType property: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.

Overrides:

IsNotNullFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

IsNotNullFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

IsNotNullFilter.validate()

withKey

public IsNotNullFilter withKey(String key)

Set the key property: The field/property in the event based on which you want to filter.

Overrides:

IsNotNullFilter.withKey(String key)

Parameters:

key

Applies to