Class Connection
java.lang.Object
co.elastic.clients.elasticsearch.graph.Connection
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class Connection extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnection.BuilderBuilder forConnection. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Connection>_DESERIALIZERJson deserializer forConnection -
Constructor Summary
Constructors Constructor Description Connection(Connection.Builder builder)Connection(java.util.function.Function<Connection.Builder,Connection.Builder> fn) -
Method Summary
Modifier and Type Method Description longdocCount()Required - API name:doc_countvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupConnectionDeserializer(DelegatingDeserializer<Connection.Builder> op)longsource()Required - API name:sourcelongtarget()Required - API name:targetdoubleweight()Required - API name:weightMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forConnection
-
-
Constructor Details
-
Connection
-
Connection
-
-
Method Details
-
docCount
public long docCount()Required - API name:doc_count -
source
public long source()Required - API name:source -
target
public long target()Required - API name:target -
weight
public double weight()Required - API name:weight -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupConnectionDeserializer
-