public class RegexFilter extends RegexMatcher implements Filter<Matcher>
Matcher
internally, specifically the method
Matcher.find()
.
Note a null
valued argument passed to the parser will be converted to an empty string (""
) before
the regex is applied.
Any Object value will be coerced to a String type via any provided CoercibleType
on
the argument selector or via its toString()
method.Matcher
,
Pattern
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected boolean |
matchEachElement
Field matchEachElement
|
DEFAULT_DELIM, delimiter, negateMatch
patternString
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
RegexFilter(String patternString)
Constructor RegexFilter creates a new RegexFilter instance.
|
RegexFilter(String patternString,
boolean removeMatch)
Constructor RegexFilter creates a new RegexFilter instance.
|
RegexFilter(String patternString,
boolean removeMatch,
boolean matchEachElement) |
RegexFilter(String patternString,
boolean removeMatch,
boolean matchEachElement,
String delimiter) |
RegexFilter(String patternString,
boolean removeMatch,
String delimiter)
Constructor RegexFilter creates a new RegexFilter instance.
|
RegexFilter(String patternString,
String delimiter)
Constructor RegexFilter creates a new RegexFilter instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
boolean |
isMatchEachElement() |
boolean |
isRemove(FlowProcess flowProcess,
FilterCall<Matcher> filterCall)
Method isRemove returns true if input should be removed from the tuple stream.
|
getDelimiter, 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
protected final boolean matchEachElement
@ConstructorProperties(value="patternString") public RegexFilter(String patternString)
patternString
- of type String@ConstructorProperties(value={"patternString","delimiter"}) public RegexFilter(String patternString, String delimiter)
patternString
- of type Stringdelimiter
- of type String@ConstructorProperties(value={"patternString","removeMatch"}) public RegexFilter(String patternString, boolean removeMatch)
patternString
- of type StringremoveMatch
- of type boolean@ConstructorProperties(value={"patternString","removeMatch","delimiter"}) public RegexFilter(String patternString, boolean removeMatch, String delimiter)
patternString
- of type StringremoveMatch
- of type booleandelimiter
- of type String@ConstructorProperties(value={"patternString","removeMatch","matchEachElement"}) public RegexFilter(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 individually@ConstructorProperties(value={"patternString","removeMatch","matchEachElement","delimiter"}) public RegexFilter(String patternString, boolean removeMatch, boolean matchEachElement, String delimiter)
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 individuallydelimiter
- of type Stringpublic boolean isMatchEachElement()
public boolean isRemove(FlowProcess flowProcess, FilterCall<Matcher> filterCall)
Filter
public boolean equals(Object object)
equals
in class RegexMatcher
public int hashCode()
hashCode
in class RegexMatcher
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.