Class SpanGapQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.SpanGapQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,SpanQueryVariant,ToCopyableBuilder<SpanGapQuery.Builder,SpanGapQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SpanGapQuery
extends Object
implements SpanQueryVariant, PlainJsonSerializable, ToCopyableBuilder<SpanGapQuery.Builder,SpanGapQuery>
Can only be used as a clause in a
span_near query.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SpanGapQuery> Json deserializer forSpanGapQuery -
Method Summary
Modifier and TypeMethodDescriptionSpanQueryvariant kind.static SpanGapQuery.Builderbuilder()booleanfinal Stringfield()Required - The path to a field or an array of paths.inthashCode()static SpanGapQueryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal intRequired -Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.SpanQueryVariant
toSpanQueryMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forSpanGapQuery
-
-
Method Details
-
of
-
_spanQueryKind
SpanQueryvariant kind.- Specified by:
_spanQueryKindin interfaceSpanQueryVariant
-
field
Required - The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields. -
spanWidth
public final int spanWidth()Required - -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SpanGapQuery.Builder,SpanGapQuery> - Returns:
- a new builder instance.
-
builder
-
setupSpanGapQueryDeserializer
-
hashCode
public int hashCode() -
equals
-