Class TotalHits
java.lang.Object
org.opensearch.client.opensearch.core.search.TotalHits
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<TotalHits.Builder,TotalHits>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TotalHits
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<TotalHits.Builder,TotalHits>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TotalHits> Json deserializer forTotalHits -
Method Summary
Modifier and TypeMethodDescriptionstatic TotalHits.Builderbuilder()booleaninthashCode()static TotalHitsfinal TotalHitsRelationrelation()Required - API name:relationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final longvalue()Required - API name:valueMethods 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.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forTotalHits
-
-
Method Details
-
of
-
relation
Required - API name:relation -
value
public final long value()Required - API name:value -
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<TotalHits.Builder,TotalHits> - Returns:
- a new builder instance.
-
builder
-
setupTotalHitsDeserializer
-
hashCode
public int hashCode() -
equals
-