com.github.rutledgepaulv.qbuilders.visitors.ElasticsearchVisitor Maven / Gradle / Ivy
/*
*
* * com.github.rutledgepaulv.qbuilders.visitors.ElasticsearchVisitor
* * *
* * * Copyright (C) 2016 Paul Rutledge
* * *
* * * This software may be modified and distributed under the terms
* * * of the MIT license. See the LICENSE file for details.
* *
*
*/
package com.github.rutledgepaulv.qbuilders.visitors;
import com.github.rutledgepaulv.qbuilders.nodes.*;
import com.github.rutledgepaulv.qbuilders.operators.ComparisonOperator;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import java.util.Collection;
import java.util.function.Function;
import java.util.stream.Collectors;
import static org.elasticsearch.index.query.QueryBuilders.*;
@SuppressWarnings("WeakerAccess")
public class ElasticsearchVisitor extends ContextualNodeVisitor {
public static class Context {
private boolean originatedAsNestedQuery = false;
public Context(){}
public Context(boolean originatedAsNestedQuery) {
this.originatedAsNestedQuery = originatedAsNestedQuery;
}
}
protected final Function