Make MultiTermQueryBuilder an interface again

This PR is against the query-refactoring branch.

Closes #12074
This commit is contained in:
Alex Ksikes 2015-07-07 11:15:27 +02:00
parent d8e56e9a6d
commit de277d99d9
6 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ import java.io.IOException;
/**
* A Query that does fuzzy matching for a specific value.
*/
public class FuzzyQueryBuilder extends MultiTermQueryBuilder {
public class FuzzyQueryBuilder extends AbstractQueryBuilder<FuzzyQueryBuilder> implements MultiTermQueryBuilder<FuzzyQueryBuilder> {
public static final String NAME = "fuzzy";

View File

@ -18,6 +18,6 @@
*/
package org.elasticsearch.index.query;
public abstract class MultiTermQueryBuilder<QB extends MultiTermQueryBuilder<QB>> extends AbstractQueryBuilder<QB> {
public interface MultiTermQueryBuilder<QB extends MultiTermQueryBuilder<QB>> extends QueryBuilder<QB> {
}

View File

@ -26,7 +26,7 @@ import java.io.IOException;
/**
* A Query that matches documents containing terms with a specified prefix.
*/
public class PrefixQueryBuilder extends MultiTermQueryBuilder {
public class PrefixQueryBuilder extends AbstractQueryBuilder<PrefixQueryBuilder> implements MultiTermQueryBuilder<PrefixQueryBuilder> {
public static final String NAME = "prefix";

View File

@ -38,7 +38,7 @@ import java.util.Objects;
/**
* A Query that matches documents within an range of terms.
*/
public class RangeQueryBuilder extends MultiTermQueryBuilder<RangeQueryBuilder> {
public class RangeQueryBuilder extends AbstractQueryBuilder<RangeQueryBuilder> implements MultiTermQueryBuilder<RangeQueryBuilder> {
public static final boolean DEFAULT_INCLUDE_UPPER = true;

View File

@ -27,7 +27,7 @@ import java.io.IOException;
/**
* A Query that does fuzzy matching for a specific value.
*/
public class RegexpQueryBuilder extends MultiTermQueryBuilder {
public class RegexpQueryBuilder extends AbstractQueryBuilder<RegexpQueryBuilder> implements MultiTermQueryBuilder<RegexpQueryBuilder> {
public static final String NAME = "regexp";
private final String name;

View File

@ -31,7 +31,7 @@ import java.io.IOException;
* a Wildcard term should not start with one of the wildcards <tt>*</tt> or
* <tt>?</tt>.
*/
public class WildcardQueryBuilder extends MultiTermQueryBuilder {
public class WildcardQueryBuilder extends AbstractQueryBuilder<WildcardQueryBuilder> implements MultiTermQueryBuilder<WildcardQueryBuilder> {
public static final String NAME = "wildcard";