public class RegexFilter extends RegexMatcher implements Filter<java.util.regex.Matcher>
Matcher
internally, specifically the method Matcher.find()
.Matcher
,
Pattern
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected boolean |
matchEachElement
Field matchEachElement
|
negateMatch
patternString
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
RegexFilter(java.lang.String patternString)
Constructor RegexFilter creates a new RegexFilter instance.
|
RegexFilter(java.lang.String patternString,
boolean removeMatch)
Constructor RegexFilter creates a new RegexFilter instance.
|
RegexFilter(java.lang.String patternString,
boolean removeMatch,
boolean matchEachElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
boolean |
isMatchEachElement() |
boolean |
isRemove(FlowProcess flowProcess,
FilterCall<java.util.regex.Matcher> filterCall)
Method isRemove returns true if input should be removed from the tuple stream.
|
isNegateMatch, matchEachElement, matchEachElementPos, matchWholeTuple, prepare
getPattern, getPatternString
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare
@ConstructorProperties(value="patternString") public RegexFilter(java.lang.String patternString)
patternString
- of type String@ConstructorProperties(value={"patternString","removeMatch"}) public RegexFilter(java.lang.String patternString, boolean removeMatch)
patternString
- of type StringremoveMatch
- of type boolean@ConstructorProperties(value={"patternString","removeMatch","matchEachElement"}) public RegexFilter(java.lang.String patternString, boolean removeMatch, boolean matchEachElement)
patternString
- of type StringremoveMatch
- of type boolean, set to true if a match should be filteredmatchEachElement
- of type boolean, set to true if each element should be matched individuallypublic boolean isMatchEachElement()
public boolean isRemove(FlowProcess flowProcess, FilterCall<java.util.regex.Matcher> filterCall)
Filter
public boolean equals(java.lang.Object object)
equals
in class RegexMatcher
public int hashCode()
hashCode
in class RegexMatcher