Package org.apache.druid.query.filter
Class EqualityFilter.TypedConstantValueMatcherFactory
java.lang.Object
org.apache.druid.query.filter.EqualityFilter.TypedConstantValueMatcherFactory
- All Implemented Interfaces:
ColumnProcessorFactory<ValueMatcher>
- Enclosing class:
- EqualityFilter
public static class EqualityFilter.TypedConstantValueMatcherFactory
extends Object
implements ColumnProcessorFactory<ValueMatcher>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExprEval<?>protected final PredicateValueMatcherFactory -
Constructor Summary
ConstructorsConstructorDescriptionTypedConstantValueMatcherFactory(ExprEval<?> matchValue, DruidPredicateFactory predicateFactory) -
Method Summary
Modifier and TypeMethodDescriptionThis default type will be used when the underlying column has an unknown type.makeArrayProcessor(BaseObjectColumnValueSelector<?> selector, ColumnCapabilities columnCapabilities) makeComplexProcessor(BaseObjectColumnValueSelector<?> selector) Create a processor for a complex column.makeDimensionProcessor(DimensionSelector selector, boolean multiValue) Create a processor for a string column.Create a processor for a double column.Create a processor for a float column.makeLongProcessor(BaseLongColumnValueSelector selector) Create a processor for a long column.
-
Field Details
-
matchValue
-
predicateMatcherFactory
-
-
Constructor Details
-
TypedConstantValueMatcherFactory
public TypedConstantValueMatcherFactory(ExprEval<?> matchValue, DruidPredicateFactory predicateFactory)
-
-
Method Details
-
defaultType
Description copied from interface:ColumnProcessorFactoryThis default type will be used when the underlying column has an unknown type. This allows a column processor factory to specify what type it prefers to deal with (the most 'natural' type for whatever it is doing) when all else is equal.- Specified by:
defaultTypein interfaceColumnProcessorFactory<ValueMatcher>
-
makeDimensionProcessor
Description copied from interface:ColumnProcessorFactoryCreate a processor for a string column.- Specified by:
makeDimensionProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- dimension selectormultiValue- whether the selector *might* have multiple values
-
makeFloatProcessor
Description copied from interface:ColumnProcessorFactoryCreate a processor for a float column.- Specified by:
makeFloatProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- float selector
-
makeDoubleProcessor
Description copied from interface:ColumnProcessorFactoryCreate a processor for a double column.- Specified by:
makeDoubleProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- double selector
-
makeLongProcessor
Description copied from interface:ColumnProcessorFactoryCreate a processor for a long column.- Specified by:
makeLongProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- long selector
-
makeArrayProcessor
public ValueMatcher makeArrayProcessor(BaseObjectColumnValueSelector<?> selector, @Nullable ColumnCapabilities columnCapabilities) - Specified by:
makeArrayProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- array selectorcolumnCapabilities- information about the underlying column to match. Null here just means the capabilities are unknown, and not necessarily indicative that the column doesn't exist
-
makeComplexProcessor
Description copied from interface:ColumnProcessorFactoryCreate a processor for a complex column.- Specified by:
makeComplexProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- object selector
-