public class InDimFilter extends AbstractOptimizableDimFilter implements DimFilter
DimFilter.DimFilterToStringBuilder| Modifier and Type | Field and Description |
|---|---|
static int |
NUMERIC_HASHING_THRESHOLD |
| Constructor and Description |
|---|
InDimFilter(String dimension,
Collection<String> values,
ExtractionFn extractionFn)
This constructor should be called only in unit tests since it creates a new hash set wrapping the given values.
|
InDimFilter(String dimension,
Set<String> values,
ExtractionFn extractionFn,
FilterTuning filterTuning) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte[] |
getCacheKey() |
String |
getDimension() |
com.google.common.collect.RangeSet<String> |
getDimensionRangeSet(String dimension)
Returns a RangeSet that represents the possible range of the input dimension for this DimFilter.This is
applicable to filters that use dimensions such as select, in, bound, and logical filters such as and, or, not.
|
ExtractionFn |
getExtractionFn() |
FilterTuning |
getFilterTuning() |
Set<String> |
getRequiredColumns() |
Set<String> |
getValues() |
int |
hashCode() |
DimFilter |
optimize() |
Filter |
toFilter()
Returns a Filter that implements this DimFilter.
|
String |
toString() |
toOptimizedFilterclone, finalize, getClass, notify, notifyAll, wait, wait, waittoOptimizedFilterpublic static final int NUMERIC_HASHING_THRESHOLD
public InDimFilter(String dimension, Set<String> values, @Nullable ExtractionFn extractionFn, @Nullable FilterTuning filterTuning)
public InDimFilter(String dimension, Collection<String> values, @Nullable ExtractionFn extractionFn)
public String getDimension()
@Nullable public ExtractionFn getExtractionFn()
@Nullable public FilterTuning getFilterTuning()
public byte[] getCacheKey()
getCacheKey in interface Cacheablepublic DimFilter optimize()
public Filter toFilter()
DimFilter@Nullable public com.google.common.collect.RangeSet<String> getDimensionRangeSet(String dimension)
DimFiltergetDimensionRangeSet in interface DimFilterdimension - name of the dimension to get range forpublic Set<String> getRequiredColumns()
getRequiredColumns in interface DimFilterCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.