diff --git a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequest.java b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequest.java index f39bfdda84b..62c02ed360c 100644 --- a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequest.java +++ b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequest.java @@ -278,7 +278,7 @@ public class GraphExploreRequest extends ActionRequest impl * are considered in this stage * @return a {@link Hop} object that holds settings for a stage in the graph exploration */ - public Hop createNextHop(QueryBuilder guidingQuery) { + public Hop createNextHop(QueryBuilder guidingQuery) { Hop parent = null; if (hops.size() > 0) { parent = hops.get(hops.size() - 1); diff --git a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequestBuilder.java b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequestBuilder.java index 090ac3c3ab8..dee78a445dc 100644 --- a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequestBuilder.java +++ b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/GraphExploreRequestBuilder.java @@ -120,7 +120,7 @@ public class GraphExploreRequestBuilder extends ActionRequestBuilder guidingQuery) { + public Hop createNextHop(@Nullable QueryBuilder guidingQuery) { return request.createNextHop(guidingQuery); } diff --git a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/Hop.java b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/Hop.java index 598d0cfc792..3ae01c472c4 100644 --- a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/Hop.java +++ b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/graph/action/Hop.java @@ -44,7 +44,7 @@ import java.util.List; public class Hop { final Hop parentHop; List vertices = null; - QueryBuilder guidingQuery = null; + QueryBuilder guidingQuery = null; Hop(Hop parent) { this.parentHop = parent; @@ -88,7 +88,7 @@ public class Hop { } } - public QueryBuilder guidingQuery() { + public QueryBuilder guidingQuery() { if (guidingQuery != null) { return guidingQuery; } @@ -117,7 +117,7 @@ public class Hop { * * @param queryBuilder any query */ - public void guidingQuery(QueryBuilder queryBuilder) { + public void guidingQuery(QueryBuilder queryBuilder) { guidingQuery = queryBuilder; }