public class CombineORsToIN extends Rewriter
q={$or:{...,{field:x,op:=,rvalue=v},..,{field:x,op:=,rvalue=w}...}}
this rewrites q as
q={$or:{...,{$in:{field:x,values:[v,w]}},...}}
| Constructor and Description |
|---|
CombineORsToIN() |
| Modifier and Type | Method and Description |
|---|---|
QueryExpression |
rewrite(QueryExpression q) |
public static final Rewriter INSTANCE
public QueryExpression rewrite(QueryExpression q)
Copyright © 2016. All rights reserved.