From b5d9d3dbeeb4d19c58043c66c5fcdda99cfc45f8 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 21 Aug 2012 14:16:51 +0200 Subject: [PATCH] small renames here and there --- .../action/explain/ExplainRequest.java | 14 +++--------- .../action/explain/ExplainRequestBuilder.java | 22 +++++++++++++------ .../explain/TransportExplainAction.java | 17 +++++--------- 3 files changed, 24 insertions(+), 29 deletions(-) diff --git a/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java b/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java index 0cb0bdd0b0f..222188a2fc0 100644 --- a/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java +++ b/src/main/java/org/elasticsearch/action/explain/ExplainRequest.java @@ -19,25 +19,17 @@ package org.elasticsearch.action.explain; -import org.elasticsearch.ElasticSearchGenerationException; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.ValidateActions; import org.elasticsearch.action.support.single.shard.SingleShardOperationRequest; import org.elasticsearch.client.Requests; import org.elasticsearch.common.Strings; -import org.elasticsearch.common.bytes.BytesArray; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; -import org.elasticsearch.common.xcontent.ToXContent; -import org.elasticsearch.common.xcontent.XContentBuilder; -import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.index.query.QueryBuilder; -import org.elasticsearch.search.builder.SearchSourceBuilder; import java.io.IOException; -import java.util.Map; /** * Explain request encapsulating the explain query and document identifier to get an explanation for. @@ -55,7 +47,7 @@ public class ExplainRequest extends SingleShardOperationRequest { private String[] filteringAlias = Strings.EMPTY_ARRAY; - ExplainRequest(){ + ExplainRequest() { } public ExplainRequest(String index, String type, String id) { @@ -127,8 +119,8 @@ public class ExplainRequest extends SingleShardOperationRequest { return this; } - public ExplainRequest source(BytesReference querySource, boolean unsafe) { - this.source = querySource; + public ExplainRequest source(BytesReference source, boolean unsafe) { + this.source = source; this.sourceUnsafe = unsafe; return this; } diff --git a/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java b/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java index e895eec69d7..8cb3987ff04 100644 --- a/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java +++ b/src/main/java/org/elasticsearch/action/explain/ExplainRequestBuilder.java @@ -23,11 +23,8 @@ import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.support.BaseRequestBuilder; import org.elasticsearch.client.Client; import org.elasticsearch.common.bytes.BytesReference; -import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.index.query.QueryBuilder; -import java.util.Map; - /** * A builder for {@link ExplainRequest}. */ @@ -97,13 +94,24 @@ public class ExplainRequestBuilder extends BaseRequestBuilder