public class InFilter extends DimensionalFilter<InFilter>
An In Filter is a generalization of the SelectorFilter
. Rather than filtering on a specific value for a
specific diimension, the In Filter takes a list of values. A dimension satisfies the In Filter iff its value is
contained in the specified list. It is logically equivalent to an OrFilter
wrapped around a collection of
SelectorFilter
.
Note that Druid's in filter is only supported by Druid versions 0.9.0 and greater.
Filter.DefaultFilterType
Constructor and Description |
---|
InFilter(Dimension dimension,
List<String> values)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<String> |
getValues()
Return the list of values to filter on.
|
int |
hashCode() |
InFilter |
withDimension(Dimension dimension)
Get a new instance of this filter with the given Dimension.
|
InFilter |
withValues(List<String> values) |
getDimension, getExtractionFunction
public InFilter withDimension(Dimension dimension)
DimensionalFilter
withDimension
in class DimensionalFilter<InFilter>
dimension
- Dimension of the new filterpublic List<String> getValues()
public int hashCode()
hashCode
in class DimensionalFilter<InFilter>
public boolean equals(Object o)
equals
in class DimensionalFilter<InFilter>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.