public class SimpleElemMatchIsComparison extends Rewriter
q={array: X, elemMatch: { x op value } or { x op y } }
this rewrites q as
q={ field: X.*.x op value | y }
This doesn't work for nary comparisons| Modifier and Type | Field and Description |
|---|---|
static SimpleElemMatchIsComparison |
INSTANCE |
| Constructor and Description |
|---|
SimpleElemMatchIsComparison() |
| Modifier and Type | Method and Description |
|---|---|
QueryExpression |
rewrite(QueryExpression q) |
public static final SimpleElemMatchIsComparison INSTANCE
public QueryExpression rewrite(QueryExpression q)
Copyright © 2016. All rights reserved.