Class GraphExploreResponse

java.lang.Object
org.elasticsearch.client.graph.GraphExploreResponse
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class GraphExploreResponse extends Object implements org.elasticsearch.xcontent.ToXContentObject
Graph explore response holds a graph of Vertex and Connection objects (nodes and edges in common graph parlance).
See Also:
  • Constructor Details

    • GraphExploreResponse

      public GraphExploreResponse()
    • GraphExploreResponse

      public GraphExploreResponse(long tookInMillis, boolean timedOut, org.elasticsearch.action.ShardOperationFailedException[] shardFailures, Map<Vertex.VertexId,Vertex> vertices, Map<Connection.ConnectionId,Connection> connections, boolean returnDetailedInfo)
  • Method Details

    • getTook

      public org.elasticsearch.core.TimeValue getTook()
    • getTookInMillis

      public long getTookInMillis()
    • isTimedOut

      public boolean isTimedOut()
      Returns:
      true if the time stated in GraphExploreRequest.timeout(TimeValue) was exceeded (not all hops may have been completed in this case)
    • getShardFailures

      public org.elasticsearch.action.ShardOperationFailedException[] getShardFailures()
    • getConnections

      public Collection<Connection> getConnections()
    • getConnectionIds

      public Collection<Connection.ConnectionId> getConnectionIds()
    • getConnection

      public Connection getConnection(Connection.ConnectionId connectionId)
    • getVertices

      public Collection<Vertex> getVertices()
    • getVertexIds

      public Collection<Vertex.VertexId> getVertexIds()
    • getVertex

      public Vertex getVertex(Vertex.VertexId id)
    • isReturnDetailedInfo

      public boolean isReturnDetailedInfo()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

      public static GraphExploreResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException