Expose noop filter to users (#5597)

This commit is contained in:
scrawfor 2018-04-18 10:57:07 -04:00 committed by Slim Bouguerra
parent 5d09f76df6
commit 15f4ab2b31
2 changed files with 10 additions and 1 deletions

View File

@ -487,3 +487,11 @@ Filtering on a set of ISO 8601 intervals:
]
}
```
### Noop Filter
The noop filter is a filter which applies no conditions to your query. Useful if you need to disable other filters when queries are generated programatically.
```json
{ "type" : "noop" }
```

View File

@ -42,7 +42,8 @@ import io.druid.java.util.common.Cacheable;
@JsonSubTypes.Type(name = "bound", value = BoundDimFilter.class),
@JsonSubTypes.Type(name = "interval", value = IntervalDimFilter.class),
@JsonSubTypes.Type(name = "like", value = LikeDimFilter.class),
@JsonSubTypes.Type(name = "expression", value = ExpressionDimFilter.class)
@JsonSubTypes.Type(name = "expression", value = ExpressionDimFilter.class),
@JsonSubTypes.Type(name = "noop", value = NoopDimFilter.class)
})
public interface DimFilter extends Cacheable
{