com.github.rutledgepaulv.qbuilders.visitors.MongoVisitor Maven / Gradle / Ivy
package com.github.rutledgepaulv.qbuilders.visitors;
import com.github.rutledgepaulv.qbuilders.nodes.AndNode;
import com.github.rutledgepaulv.qbuilders.nodes.ComparisonNode;
import com.github.rutledgepaulv.qbuilders.nodes.OrNode;
import com.github.rutledgepaulv.qbuilders.operators.ComparisonOperator;
import org.springframework.data.mongodb.core.query.Criteria;
import java.sql.Date;
import java.time.Instant;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import static org.springframework.data.mongodb.core.query.Criteria.where;
@SuppressWarnings("WeakerAccess")
public class MongoVisitor extends AbstractVoidContextNodeVisitor {
protected final Function