Package org.elasticsearch.client.graph
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionGraphExploreResponse(long tookInMillis, boolean timedOut, ShardOperationFailedException[] shardFailures, Map<Vertex.VertexId, Vertex> vertices, Map<Connection.ConnectionId, Connection> connections, boolean returnDetailedInfo) -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphExploreResponsefromXContent(org.elasticsearch.xcontent.XContentParser parser) getConnection(Connection.ConnectionId connectionId) org.elasticsearch.core.TimeValuegetTook()longbooleanbooleanorg.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
GraphExploreResponse
public GraphExploreResponse() -
GraphExploreResponse
public GraphExploreResponse(long tookInMillis, boolean timedOut, 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
-
getConnections
-
getConnectionIds
-
getConnection
-
getVertices
-
getVertexIds
-
getVertex
-
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:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
fromXContent
public static GraphExploreResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-