Package org.apache.druid.segment.filter
Class StringConstantValueMatcherFactory
- java.lang.Object
-
- org.apache.druid.segment.filter.StringConstantValueMatcherFactory
-
- All Implemented Interfaces:
ColumnProcessorFactory<ValueMatcher>
public class StringConstantValueMatcherFactory extends Object implements ColumnProcessorFactory<ValueMatcher>
CreatesValueMatcherthat match constants.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnTypedefaultType()This default type will be used when the underlying column has an unknown type.ValueMatchermakeArrayProcessor(BaseObjectColumnValueSelector<?> selector, ColumnCapabilities columnCapabilities)ValueMatchermakeComplexProcessor(BaseObjectColumnValueSelector<?> selector)Create a processor for a complex column.ValueMatchermakeDimensionProcessor(DimensionSelector selector, boolean multiValue)Create a processor for a string column.ValueMatchermakeDoubleProcessor(BaseDoubleColumnValueSelector selector)Create a processor for a double column.ValueMatchermakeFloatProcessor(BaseFloatColumnValueSelector selector)Create a processor for a float column.ValueMatchermakeLongProcessor(BaseLongColumnValueSelector selector)Create a processor for a long column.
-
-
-
Method Detail
-
defaultType
public ColumnType 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
public ValueMatcher makeDimensionProcessor(DimensionSelector selector, boolean multiValue)
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
public ValueMatcher makeFloatProcessor(BaseFloatColumnValueSelector selector)
Description copied from interface:ColumnProcessorFactoryCreate a processor for a float column.- Specified by:
makeFloatProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- float selector
-
makeDoubleProcessor
public ValueMatcher makeDoubleProcessor(BaseDoubleColumnValueSelector selector)
Description copied from interface:ColumnProcessorFactoryCreate a processor for a double column.- Specified by:
makeDoubleProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- double selector
-
makeLongProcessor
public ValueMatcher makeLongProcessor(BaseLongColumnValueSelector selector)
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
public ValueMatcher makeComplexProcessor(BaseObjectColumnValueSelector<?> selector)
Description copied from interface:ColumnProcessorFactoryCreate a processor for a complex column.- Specified by:
makeComplexProcessorin interfaceColumnProcessorFactory<ValueMatcher>- Parameters:
selector- object selector
-
-