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

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

package com.github.wz2cool.elasticsearch.query.builder;

import com.github.wz2cool.elasticsearch.lambda.GetStringPropertyFunction;
import com.github.wz2cool.elasticsearch.model.ColumnInfo;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.WildcardQueryBuilder;

/**
 * @see WildcardQueryBuilder
 */
public class WildcardExtQueryBuilder implements ExtQueryBuilder {

    private final WildcardQueryBuilder wildcardQueryBuilder;

    /**
     * @see WildcardQueryBuilder#WildcardQueryBuilder(String, String)
     */
    public WildcardExtQueryBuilder(GetStringPropertyFunction getPropertyFunc, String query) {
        final ColumnInfo columnInfo = getColumnInfo(getPropertyFunc);
        this.wildcardQueryBuilder = new WildcardQueryBuilder(columnInfo.getColumnName(), query);
    }

    @Override
    public QueryBuilder build() {
        return this.wildcardQueryBuilder;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy