public class SelectorFilter extends DimensionalFilter
Filter.DefaultFilterType
Constructor and Description |
---|
SelectorFilter(Dimension dimension,
String value)
Constructor.
|
SelectorFilter(Dimension dimension,
String value,
ExtractionFunction extractionFn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getValue() |
int |
hashCode() |
SelectorFilter |
withDimension(Dimension dimension)
Get a new instance of this filter with the given Dimension.
|
SelectorFilter |
withExtractionFn(ExtractionFunction extractionFn)
Get a new instance of this filter with the given value.
|
SelectorFilter |
withValue(String value)
Get a new instance of this filter with the given value.
|
getDimension, getExtractionFunction
public SelectorFilter(Dimension dimension, String value)
dimension
- Dimension to apply the extraction tovalue
- Value of the filterpublic SelectorFilter(Dimension dimension, String value, ExtractionFunction extractionFn)
dimension
- Dimension to apply the extraction tovalue
- Value of the filterextractionFn
- Extraction function to be applied on dimensionpublic String getValue()
public SelectorFilter withDimension(Dimension dimension)
DimensionalFilter
withDimension
in class DimensionalFilter
dimension
- Dimension of the new filterpublic SelectorFilter withValue(String value)
value
- Value of the new filter.public SelectorFilter withExtractionFn(ExtractionFunction extractionFn)
extractionFn
- Extraction function to be applied on dimensionpublic int hashCode()
hashCode
in class DimensionalFilter
public boolean equals(Object obj)
equals
in class DimensionalFilter
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.