Package org.elasticsearch.client.graph
Class Connection
java.lang.Object
org.elasticsearch.client.graph.Connection
public class Connection
extends java.lang.Object
A Connection links exactly two
Vertex objects. The basis of a
connection is one or more documents have been found that contain
this pair of terms and the strength of the connection is recorded
as a weight.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnection.ConnectionIdAn identifier (implements hashcode and equals) that represents a unique key for aConnection -
Constructor Summary
Constructors Constructor Description Connection(Vertex from, Vertex to, double weight, long docCount) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetDocCount()VertexgetFrom()Connection.ConnectionIdgetId()VertexgetTo()doublegetWeight()inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Connection
-
-
Method Details
-
getId
-
getFrom
-
getTo
-
getWeight
public double getWeight()- Returns:
- a measure of the relative connectedness between a pair of
Vertexobjects
-
getDocCount
public long getDocCount()- Returns:
- the number of documents in the sampled set that contained this
pair of
Vertexobjects.
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-