cascading.operation.regex
Class RegexMatcher
java.lang.Object
cascading.operation.BaseOperation<C>
cascading.operation.regex.RegexOperation<Matcher>
cascading.operation.regex.RegexMatcher
- All Implemented Interfaces:
- DeclaresResults, Operation<Matcher>, Traceable, Serializable
- Direct Known Subclasses:
- AssertMatches, AssertMatchesAll, RegexFilter
public class RegexMatcher
- extends RegexOperation<Matcher>
Class RegexMatcher is the base class for common regular expression operations.
This operation uses Matcher
internally, specifically the method Matcher.find()
.
- See Also:
Matcher
,
Pattern
,
Serialized Form
Field Summary |
protected boolean |
negateMatch
Field removeMatch |
Fields inherited from interface cascading.operation.Operation |
ANY |
Method Summary |
boolean |
equals(Object object)
|
int |
hashCode()
|
boolean |
isNegateMatch()
|
protected boolean |
matchEachElement(Matcher matcher,
Tuple input)
Deprecated. use matchEachElementPos(java.util.regex.Matcher, cascading.tuple.TupleEntry) |
protected boolean |
matchEachElement(Matcher matcher,
TupleEntry input)
|
protected int |
matchEachElementPos(Matcher matcher,
Tuple input)
Deprecated. use matchEachElementPos(java.util.regex.Matcher, cascading.tuple.TupleEntry) |
protected int |
matchEachElementPos(Matcher matcher,
TupleEntry input)
|
protected boolean |
matchWholeTuple(Matcher matcher,
Tuple input)
Deprecated. use matchWholeTuple(java.util.regex.Matcher, cascading.tuple.TupleEntry) |
protected boolean |
matchWholeTuple(Matcher matcher,
TupleEntry input)
|
void |
prepare(FlowProcess flowProcess,
OperationCall<Matcher> operationCall)
Method prepare does nothing, and may safely be overridden. |
negateMatch
protected final boolean negateMatch
- Field removeMatch
RegexMatcher
@ConstructorProperties(value="patternString")
protected RegexMatcher(String patternString)
RegexMatcher
@ConstructorProperties(value={"patternString","negateMatch"})
protected RegexMatcher(String patternString,
boolean negateMatch)
RegexMatcher
@ConstructorProperties(value={"fieldDeclaration","patternString"})
protected RegexMatcher(Fields fieldDeclaration,
String patternString)
RegexMatcher
@ConstructorProperties(value={"fieldDeclaration","patternString","negateMatch"})
protected RegexMatcher(Fields fieldDeclaration,
String patternString,
boolean negateMatch)
isNegateMatch
public boolean isNegateMatch()
prepare
public void prepare(FlowProcess flowProcess,
OperationCall<Matcher> operationCall)
- Description copied from class:
BaseOperation
- Method prepare does nothing, and may safely be overridden.
- Specified by:
prepare
in interface Operation<Matcher>
- Overrides:
prepare
in class BaseOperation<Matcher>
matchWholeTuple
protected boolean matchWholeTuple(Matcher matcher,
TupleEntry input)
matchWholeTuple
@Deprecated
protected boolean matchWholeTuple(Matcher matcher,
Tuple input)
- Deprecated. use
matchWholeTuple(java.util.regex.Matcher, cascading.tuple.TupleEntry)
matchEachElement
protected boolean matchEachElement(Matcher matcher,
TupleEntry input)
matchEachElement
@Deprecated
protected boolean matchEachElement(Matcher matcher,
Tuple input)
- Deprecated. use
matchEachElementPos(java.util.regex.Matcher, cascading.tuple.TupleEntry)
matchEachElementPos
protected int matchEachElementPos(Matcher matcher,
TupleEntry input)
matchEachElementPos
@Deprecated
protected int matchEachElementPos(Matcher matcher,
Tuple input)
- Deprecated. use
matchEachElementPos(java.util.regex.Matcher, cascading.tuple.TupleEntry)
equals
public boolean equals(Object object)
- Overrides:
equals
in class RegexOperation<Matcher>
hashCode
public int hashCode()
- Overrides:
hashCode
in class RegexOperation<Matcher>
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.