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 twoVertex
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 class
Connection.ConnectionId
An 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 boolean
equals(java.lang.Object obj)
long
getDocCount()
Vertex
getFrom()
Connection.ConnectionId
getId()
Vertex
getTo()
double
getWeight()
int
hashCode()
-
-
-
Method Detail
-
getId
public Connection.ConnectionId getId()
-
getFrom
public Vertex getFrom()
-
getTo
public Vertex getTo()
-
getWeight
public double getWeight()
- Returns:
- a measure of the relative connectedness between a pair of
Vertex
objects
-
getDocCount
public long getDocCount()
- Returns:
- the number of documents in the sampled set that contained this
pair of
Vertex
objects.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-