Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
  • Loading branch information
MaxKsyunz committed Aug 10, 2022
1 parent bc4550c commit 3029b5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ public T createQueryBuilder(NamedArgumentExpression fields, NamedArgumentExpress
return createBuilder(fieldsAndWeights, query);
}

abstract protected T createBuilder(ImmutableMap<String, Float> fields, String query);
protected abstract T createBuilder(ImmutableMap<String, Float> fields, String query);
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public MultiMatchQuery() {
}

@Override
protected MultiMatchQueryBuilder createBuilder(ImmutableMap fields, String query) {
protected MultiMatchQueryBuilder createBuilder(ImmutableMap<String, Float> fields, String query) {
return QueryBuilders.multiMatchQuery(query).fields(fields);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ public QueryBuilder build(FunctionExpression func) {
return queryBuilder;
}

abstract protected T createQueryBuilder(NamedArgumentExpression field, NamedArgumentExpression query);
protected abstract T createQueryBuilder(NamedArgumentExpression field,
NamedArgumentExpression query);

/**
* Convenience interface for a function that updates a QueryBuilder
* based on ExprValue.
*
* @param <T> Concrete query builder
*/
public interface QueryBuilderStep<T extends QueryBuilder> extends
protected interface QueryBuilderStep<T extends QueryBuilder> extends
BiFunction<T, ExprValue, T> {

}
}

0 comments on commit 3029b5b

Please sign in to comment.