Removes unused empty parser's constructors

This commit is contained in:
Alex Ksikes 2015-09-16 10:41:12 +02:00
parent a13336da54
commit 65139ee40a
39 changed files with 0 additions and 154 deletions

View File

@ -29,10 +29,6 @@ import java.io.IOException;
*/
public class BoostingQueryParser extends BaseQueryParser<BoostingQueryBuilder> {
@Inject
public BoostingQueryParser() {
}
@Override
public String[] names() {
return new String[]{BoostingQueryBuilder.NAME};

View File

@ -29,10 +29,6 @@ import java.io.IOException;
*/
public class CommonTermsQueryParser extends BaseQueryParser<CommonTermsQueryBuilder> {
@Inject
public CommonTermsQueryParser() {
}
@Override
public String[] names() {
return new String[] { CommonTermsQueryBuilder.NAME };

View File

@ -33,10 +33,6 @@ public class ConstantScoreQueryParser extends BaseQueryParser<ConstantScoreQuery
private static final ParseField INNER_QUERY_FIELD = new ParseField("filter", "query");
@Inject
public ConstantScoreQueryParser() {
}
@Override
public String[] names() {
return new String[]{ConstantScoreQueryBuilder.NAME, Strings.toCamelCase(ConstantScoreQueryBuilder.NAME)};

View File

@ -32,10 +32,6 @@ import java.util.List;
*/
public class DisMaxQueryParser extends BaseQueryParser<DisMaxQueryBuilder> {
@Inject
public DisMaxQueryParser() {
}
@Override
public String[] names() {
return new String[]{DisMaxQueryBuilder.NAME, Strings.toCamelCase(DisMaxQueryBuilder.NAME)};

View File

@ -29,10 +29,6 @@ import java.io.IOException;
*/
public class ExistsQueryParser extends BaseQueryParser<ExistsQueryBuilder> {
@Inject
public ExistsQueryParser() {
}
@Override
public String[] names() {
return new String[]{ExistsQueryBuilder.NAME};

View File

@ -29,10 +29,6 @@ import java.io.IOException;
*/
public class FieldMaskingSpanQueryParser extends BaseQueryParser<FieldMaskingSpanQueryBuilder> {
@Inject
public FieldMaskingSpanQueryParser() {
}
@Override
public String[] names() {
return new String[]{FieldMaskingSpanQueryBuilder.NAME, Strings.toCamelCase(FieldMaskingSpanQueryBuilder.NAME)};

View File

@ -31,10 +31,6 @@ public class FuzzyQueryParser extends BaseQueryParser {
private static final ParseField FUZZINESS = Fuzziness.FIELD.withDeprecation("min_similarity");
@Inject
public FuzzyQueryParser() {
}
@Override
public String[] names() {
return new String[]{ FuzzyQueryBuilder.NAME };

View File

@ -58,10 +58,6 @@ public class GeoBoundingBoxQueryParser extends BaseQueryParserTemp {
public static final String FIELD = "field";
@Inject
public GeoBoundingBoxQueryParser() {
}
@Override
public String[] names() {
return new String[]{GeoBoundingBoxQueryBuilder.NAME, "geoBbox", "geo_bounding_box", "geoBoundingBox"};

View File

@ -44,10 +44,6 @@ import java.io.IOException;
*/
public class GeoDistanceQueryParser extends BaseQueryParserTemp {
@Inject
public GeoDistanceQueryParser() {
}
@Override
public String[] names() {
return new String[]{GeoDistanceQueryBuilder.NAME, "geoDistance"};

View File

@ -56,10 +56,6 @@ public class GeoDistanceRangeQueryParser extends BaseQueryParser<GeoDistanceRang
public static final ParseField COERCE_FIELD = new ParseField("coerce", "normalize");
public static final ParseField IGNORE_MALFORMED_FIELD = new ParseField("ignore_malformed");
@Inject
public GeoDistanceRangeQueryParser() {
}
@Override
public String[] names() {
return new String[]{GeoDistanceRangeQueryBuilder.NAME, "geoDistanceRange"};

View File

@ -48,10 +48,6 @@ public class GeoPolygonQueryParser extends BaseQueryParser<GeoPolygonQueryBuilde
public static final ParseField IGNORE_MALFORMED_FIELD = new ParseField("ignore_malformed");
public static final ParseField POINTS_FIELD = new ParseField("points");
@Inject
public GeoPolygonQueryParser() {
}
@Override
public String[] names() {
return new String[]{GeoPolygonQueryBuilder.NAME, "geoPolygon"};

View File

@ -32,10 +32,6 @@ import java.util.List;
*/
public class IdsQueryParser extends BaseQueryParser<IdsQueryBuilder> {
@Inject
public IdsQueryParser() {
}
@Override
public String[] names() {
return new String[]{IdsQueryBuilder.NAME};

View File

@ -35,10 +35,6 @@ public class IndicesQueryParser extends BaseQueryParser {
private static final ParseField QUERY_FIELD = new ParseField("query", "filter");
private static final ParseField NO_MATCH_QUERY = new ParseField("no_match_query", "no_match_filter");
@Inject
public IndicesQueryParser() {
}
@Override
public String[] names() {
return new String[]{IndicesQueryBuilder.NAME};

View File

@ -30,10 +30,6 @@ import java.io.IOException;
*/
public class MatchAllQueryParser extends BaseQueryParser<MatchAllQueryBuilder> {
@Inject
public MatchAllQueryParser() {
}
@Override
public String[] names() {
return new String[]{MatchAllQueryBuilder.NAME, Strings.toCamelCase(MatchAllQueryBuilder.NAME)};

View File

@ -27,10 +27,6 @@ import java.io.IOException;
public class MatchNoneQueryParser extends BaseQueryParser {
@Inject
public MatchNoneQueryParser() {
}
@Override
public String[] names() {
return new String[]{MatchNoneQueryBuilder.NAME, Strings.toCamelCase(MatchNoneQueryBuilder.NAME)};

View File

@ -33,10 +33,6 @@ import java.io.IOException;
*/
public class MatchQueryParser extends BaseQueryParser {
@Inject
public MatchQueryParser() {
}
@Override
public String[] names() {
return new String[]{

View File

@ -29,10 +29,6 @@ import java.io.IOException;
*/
public class MissingQueryParser extends BaseQueryParser<MissingQueryBuilder> {
@Inject
public MissingQueryParser() {
}
@Override
public String[] names() {
return new String[]{MissingQueryBuilder.NAME};

View File

@ -37,10 +37,6 @@ import java.util.Map;
*/
public class MultiMatchQueryParser extends BaseQueryParserTemp {
@Inject
public MultiMatchQueryParser() {
}
@Override
public String[] names() {
return new String[]{

View File

@ -42,7 +42,6 @@ public class NestedQueryParser extends BaseQueryParser<NestedQueryBuilder> {
private static final ParseField FILTER_FIELD = new ParseField("filter").withAllDeprecated("query");
private static final NestedQueryBuilder PROTOTYPE = new NestedQueryBuilder("", EmptyQueryBuilder.PROTOTYPE);
@Override
public String[] names() {
return new String[]{NestedQueryBuilder.NAME, Strings.toCamelCase(NestedQueryBuilder.NAME)};

View File

@ -32,10 +32,6 @@ public class NotQueryParser extends BaseQueryParser<NotQueryBuilder> {
private static final ParseField QUERY_FIELD = new ParseField("query", "filter");
@Inject
public NotQueryParser() {
}
@Override
public String[] names() {
return new String[]{NotQueryBuilder.NAME};

View File

@ -32,10 +32,6 @@ public class PrefixQueryParser extends BaseQueryParser<PrefixQueryBuilder> {
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of prefix query");
@Inject
public PrefixQueryParser() {
}
@Override
public String[] names() {
return new String[]{PrefixQueryBuilder.NAME};

View File

@ -31,10 +31,6 @@ import java.io.IOException;
@Deprecated
public class QueryFilterParser extends BaseQueryParser<QueryFilterBuilder> {
@Inject
public QueryFilterParser() {
}
@Override
public String[] names() {
return new String[]{QueryFilterBuilder.NAME};

View File

@ -37,10 +37,6 @@ public class QueryStringQueryParser extends BaseQueryParser {
private static final ParseField FUZZINESS = Fuzziness.FIELD.withDeprecation("fuzzy_min_sim");
@Inject
public QueryStringQueryParser() {
}
@Override
public String[] names() {
return new String[]{QueryStringQueryBuilder.NAME, Strings.toCamelCase(QueryStringQueryBuilder.NAME)};

View File

@ -33,10 +33,6 @@ public class RangeQueryParser extends BaseQueryParser<RangeQueryBuilder> {
private static final ParseField FIELDDATA_FIELD = new ParseField("fielddata").withAllDeprecated("[no replacement]");
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of range query");
@Inject
public RangeQueryParser() {
}
@Override
public String[] names() {
return new String[]{RangeQueryBuilder.NAME};

View File

@ -32,10 +32,6 @@ public class RegexpQueryParser extends BaseQueryParser<RegexpQueryBuilder> {
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of regexp query");
@Inject
public RegexpQueryParser() {
}
@Override
public String[] names() {
return new String[]{RegexpQueryBuilder.NAME};

View File

@ -35,10 +35,6 @@ import java.util.Map;
*/
public class ScriptQueryParser extends BaseQueryParser<ScriptQueryBuilder> {
@Inject
public ScriptQueryParser() {
}
@Override
public String[] names() {
return new String[]{ScriptQueryBuilder.NAME};

View File

@ -62,11 +62,6 @@ import java.util.Map;
*/
public class SimpleQueryStringParser extends BaseQueryParser<SimpleQueryStringBuilder> {
@Inject
public SimpleQueryStringParser() {
}
@Override
public String[] names() {
return new String[]{SimpleQueryStringBuilder.NAME, Strings.toCamelCase(SimpleQueryStringBuilder.NAME)};

View File

@ -30,10 +30,6 @@ import java.io.IOException;
*/
public class SpanContainingQueryParser extends BaseQueryParser<SpanContainingQueryBuilder> {
@Inject
public SpanContainingQueryParser() {
}
@Override
public String[] names() {
return new String[]{SpanContainingQueryBuilder.NAME, Strings.toCamelCase(SpanContainingQueryBuilder.NAME)};

View File

@ -30,10 +30,6 @@ import java.io.IOException;
*/
public class SpanFirstQueryParser extends BaseQueryParser<SpanFirstQueryBuilder> {
@Inject
public SpanFirstQueryParser() {
}
@Override
public String[] names() {
return new String[]{SpanFirstQueryBuilder.NAME, Strings.toCamelCase(SpanFirstQueryBuilder.NAME)};

View File

@ -31,10 +31,6 @@ public class SpanMultiTermQueryParser extends BaseQueryParser<SpanMultiTermQuery
public static final String MATCH_NAME = "match";
@Inject
public SpanMultiTermQueryParser() {
}
@Override
public String[] names() {
return new String[]{SpanMultiTermQueryBuilder.NAME, Strings.toCamelCase(SpanMultiTermQueryBuilder.NAME)};

View File

@ -32,10 +32,6 @@ import java.util.List;
*/
public class SpanNearQueryParser extends BaseQueryParser<SpanNearQueryBuilder> {
@Inject
public SpanNearQueryParser() {
}
@Override
public String[] names() {
return new String[]{SpanNearQueryBuilder.NAME, Strings.toCamelCase(SpanNearQueryBuilder.NAME)};

View File

@ -30,10 +30,6 @@ import java.io.IOException;
*/
public class SpanNotQueryParser extends BaseQueryParser<SpanNotQueryBuilder> {
@Inject
public SpanNotQueryParser() {
}
@Override
public String[] names() {
return new String[]{SpanNotQueryBuilder.NAME, Strings.toCamelCase(SpanNotQueryBuilder.NAME)};

View File

@ -30,10 +30,6 @@ import java.io.IOException;
*/
public class SpanTermQueryParser extends BaseQueryParser<SpanTermQueryBuilder> {
@Inject
public SpanTermQueryParser() {
}
@Override
public String[] names() {
return new String[]{SpanTermQueryBuilder.NAME, Strings.toCamelCase(SpanTermQueryBuilder.NAME)};

View File

@ -30,10 +30,6 @@ import java.io.IOException;
*/
public class SpanWithinQueryParser extends BaseQueryParser<SpanWithinQueryBuilder> {
@Inject
public SpanWithinQueryParser() {
}
@Override
public String[] names() {
return new String[]{SpanWithinQueryBuilder.NAME, Strings.toCamelCase(SpanWithinQueryBuilder.NAME)};

View File

@ -33,10 +33,6 @@ public class TermQueryParser extends BaseQueryParser<TermQueryBuilder> {
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of term query");
private static final ParseField BOOST_FIELD = new ParseField("boost").withAllDeprecated("boost is not supported in short version of term query");
@Inject
public TermQueryParser() {
}
@Override
public String[] names() {
return new String[]{TermQueryBuilder.NAME};

View File

@ -43,10 +43,6 @@ public class TermsQueryParser extends BaseQueryParser {
private static final ParseField DISABLE_COORD_FIELD = new ParseField("disable_coord").withAllDeprecated("Use [bool] query instead");
private static final ParseField EXECUTION_FIELD = new ParseField("execution").withAllDeprecated("execution is deprecated and has no effect");
@Inject
public TermsQueryParser() {
}
@Override
public String[] names() {
return new String[]{TermsQueryBuilder.NAME, "in"};

View File

@ -30,10 +30,6 @@ import java.io.IOException;
*/
public class TypeQueryParser extends BaseQueryParser<TypeQueryBuilder> {
@Inject
public TypeQueryParser() {
}
@Override
public String[] names() {
return new String[]{TypeQueryBuilder.NAME};

View File

@ -29,10 +29,6 @@ import java.io.IOException;
*/
public class WildcardQueryParser extends BaseQueryParser<WildcardQueryBuilder> {
@Inject
public WildcardQueryParser() {
}
@Override
public String[] names() {
return new String[]{WildcardQueryBuilder.NAME};

View File

@ -29,10 +29,6 @@ import java.io.IOException;
*/
public class WrapperQueryParser extends BaseQueryParser {
@Inject
public WrapperQueryParser() {
}
@Override
public String[] names() {
return new String[]{WrapperQueryBuilder.NAME};