All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.wz2cool.elasticsearch.query.builder.ExtQueryBuilders Maven / Gradle / Ivy

There is a newer version: 0.1.6
Show newest version
package com.github.wz2cool.elasticsearch.query.builder;

import com.github.wz2cool.elasticsearch.lambda.*;

import java.math.BigDecimal;
import java.util.Date;

public class ExtQueryBuilders {

    public MatchExtQueryBuilder match(GetStringPropertyFunction getPropertyFunc, String text) {
        return new MatchExtQueryBuilder<>(getPropertyFunc, text);
    }

    @SafeVarargs
    public final MultiMatchExtQueryBuilder multiMatch(String value, GetStringPropertyFunction... getPropertyFuncs) {
        return new MultiMatchExtQueryBuilder<>(value, getPropertyFuncs);
    }

    public MatchPhraseExtQueryBuilder matchPhrase(GetStringPropertyFunction getPropertyFunc, String text) {
        return new MatchPhraseExtQueryBuilder<>(getPropertyFunc, text);
    }

    public MatchPhrasePrefixExtQueryBuilder matchPhrasePrefix(GetStringPropertyFunction getPropertyFunc, String text) {
        return new MatchPhrasePrefixExtQueryBuilder<>(getPropertyFunc, text);
    }

    public TermExtQueryBuilder term(GetStringArrayPropertyFunction getPropertyFunc, String value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetIntegerArrayPropertyFunction getPropertyFunc, int value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetLongArrayPropertyFunction getPropertyFunc, long value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetFloatArrayPropertyFunction getPropertyFunc, float value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetDoubleArrayPropertyFunction getPropertyFunc, double value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetDateArrayPropertyFunction getPropertyFunc, Date value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetBigDecimalArrayPropertyFunction getPropertyFunc, BigDecimal value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetStringPropertyFunction getPropertyFunc, String value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetIntegerPropertyFunction getPropertyFunc, int value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetLongPropertyFunction getPropertyFunc, long value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetFloatPropertyFunction getPropertyFunc, float value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetDoublePropertyFunction getPropertyFunc, double value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetBooleanPropertyFunction getPropertyFunc, boolean value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetDatePropertyFunction getPropertyFunc, Date value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }

    public TermExtQueryBuilder term(GetBigDecimalPropertyFunction getPropertyFunc, BigDecimal value) {
        return new TermExtQueryBuilder<>(getPropertyFunc, value);
    }


    public TermsExtQueryBuilder terms(GetStringArrayPropertyFunction getPropertyFunc, String... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetIntegerArrayPropertyFunction getPropertyFunc, Integer... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetLongArrayPropertyFunction getPropertyFunc, Long... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetFloatArrayPropertyFunction getPropertyFunc, Float... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetDoubleArrayPropertyFunction getPropertyFunc, Double... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetDateArrayPropertyFunction getPropertyFunc, Date... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetBigDecimalArrayPropertyFunction getPropertyFunc, BigDecimal... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetStringPropertyFunction getPropertyFunc, String... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetIntegerPropertyFunction getPropertyFunc, Integer... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetLongPropertyFunction getPropertyFunc, Long... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetFloatPropertyFunction getPropertyFunc, Float... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetDoublePropertyFunction getPropertyFunc, Double... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetBooleanPropertyFunction getPropertyFunc, Boolean... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetDatePropertyFunction getPropertyFunc, Date... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public TermsExtQueryBuilder terms(GetBigDecimalPropertyFunction getPropertyFunc, BigDecimal... values) {
        return new TermsExtQueryBuilder<>(getPropertyFunc, values);
    }

    public FuzzyExtQueryBuilder fuzzy(GetStringPropertyFunction getPropertyFunc, String value) {
        return new FuzzyExtQueryBuilder<>(getPropertyFunc, value);
    }

    public PrefixExtQueryBuilder prefix(GetStringPropertyFunction getPropertyFunc, String prefix) {
        return new PrefixExtQueryBuilder<>(getPropertyFunc, prefix);
    }

    public RangeExtQueryBuilder range(GetIntegerPropertyFunction getPropertyFunc) {
        return new RangeExtQueryBuilder<>(getPropertyFunc);
    }

    public RangeExtQueryBuilder range(GetLongPropertyFunction getPropertyFunc) {
        return new RangeExtQueryBuilder<>(getPropertyFunc);
    }

    public RangeExtQueryBuilder range(GetFloatPropertyFunction getPropertyFunc) {
        return new RangeExtQueryBuilder<>(getPropertyFunc);
    }

    public RangeExtQueryBuilder range(GetDoublePropertyFunction getPropertyFunc) {
        return new RangeExtQueryBuilder<>(getPropertyFunc);
    }

    public RangeExtQueryBuilder range(GetDatePropertyFunction getPropertyFunc) {
        return new RangeExtQueryBuilder<>(getPropertyFunc);
    }

    public RangeExtQueryBuilder range(GetBigDecimalPropertyFunction getPropertyFunc) {
        return new RangeExtQueryBuilder<>(getPropertyFunc);
    }

    public WildcardExtQueryBuilder wildcard(GetStringPropertyFunction getPropertyFunc, String query) {
        return new WildcardExtQueryBuilder<>(getPropertyFunc, query);
    }

    public RegexpExtQueryBuilder regexp(GetStringPropertyFunction getPropertyFunc, String regexp) {
        return new RegexpExtQueryBuilder<>(getPropertyFunc, regexp);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy