java.lang.Object
org.elasticsearch.protocol.xpack.graph.Connection
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 ClassesModifier and TypeClassDescriptionstatic classAn identifier (implements hashcode and equals) that represents a unique key for aConnection -
Constructor Summary
ConstructorsConstructorDescriptionConnection(StreamInput in, Map<Vertex.VertexId, Vertex> vertices) Connection(Vertex from, Vertex to, double weight, long docCount) -
Method Summary
-
Constructor Details
-
Connection
-
Connection
- Throws:
IOException
-
-
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
-
hashCode
public int hashCode()
-