public abstract class AbstractFilterStringColLikeStringScalar extends VectorExpression
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractFilterStringColLikeStringScalar.BeginChecker
Matches the beginning of each string to a pattern.
|
static interface |
AbstractFilterStringColLikeStringScalar.Checker
A Checker contains a pattern and checks whether a given string matches or not.
|
protected static interface |
AbstractFilterStringColLikeStringScalar.CheckerFactory
A CheckerFactory creates checkers of its kind.
|
protected static class |
AbstractFilterStringColLikeStringScalar.ComplexChecker
Matches each string to a pattern with Java regular expression package.
|
protected static class |
AbstractFilterStringColLikeStringScalar.EndChecker
Matches the ending of each string to its pattern.
|
protected static class |
AbstractFilterStringColLikeStringScalar.MiddleChecker
Matches the middle of each string to its pattern.
|
protected static class |
AbstractFilterStringColLikeStringScalar.NoneChecker
Matches the whole string to its pattern.
|
VectorExpression.Type
childExpressions, inputTypes, outputType
Constructor and Description |
---|
AbstractFilterStringColLikeStringScalar() |
AbstractFilterStringColLikeStringScalar(int colNum,
String pattern) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(VectorizedRowBatch batch)
This is the primary method to implement expression logic.
|
protected abstract List<AbstractFilterStringColLikeStringScalar.CheckerFactory> |
getCheckerFactories() |
int |
getColNum() |
VectorExpressionDescriptor.Descriptor |
getDescriptor() |
int |
getOutputColumn()
Returns the index of the output column in the array
of column vectors.
|
String |
getOutputType()
Returns type of the output column.
|
String |
getPattern() |
void |
setColNum(int colNum) |
void |
setPattern(String pattern) |
evaluateChildren, getChildExpressions, getInputTypes, setChildExpressions, setInputTypes, setOutputType, toString
public AbstractFilterStringColLikeStringScalar()
public AbstractFilterStringColLikeStringScalar(int colNum, String pattern)
protected abstract List<AbstractFilterStringColLikeStringScalar.CheckerFactory> getCheckerFactories()
public void evaluate(VectorizedRowBatch batch)
VectorExpression
evaluate
in class VectorExpression
public int getOutputColumn()
VectorExpression
getOutputColumn
in class VectorExpression
public String getOutputType()
VectorExpression
getOutputType
in class VectorExpression
public int getColNum()
public void setColNum(int colNum)
public String getPattern()
public void setPattern(String pattern)
public VectorExpressionDescriptor.Descriptor getDescriptor()
getDescriptor
in class VectorExpression
Copyright © 2017 The Apache Software Foundation. All rights reserved.