public class RegexGenerator extends RegexOperation<Pair<java.util.regex.Matcher,TupleEntry>> implements Function<Pair<java.util.regex.Matcher,TupleEntry>>
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 if type information is provided. See the
CoercibleType
interface to control how custom Object types are converted to String
values.
patternString
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
RegexGenerator(Fields fieldDeclaration,
java.lang.String patternString)
Constructor RegexGenerator creates a new RegexGenerator instance.
|
RegexGenerator(java.lang.String patternString)
Constructor RegexGenerator creates a new RegexGenerator instance.
|
Modifier and Type | Method and Description |
---|---|
void |
operate(FlowProcess flowProcess,
FunctionCall<Pair<java.util.regex.Matcher,TupleEntry>> functionCall)
Method operate provides the implementation of this Function.
|
void |
prepare(FlowProcess flowProcess,
OperationCall<Pair<java.util.regex.Matcher,TupleEntry>> operationCall)
Method prepare does nothing, and may safely be overridden.
|
equals, getPattern, getPatternString, hashCode
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value="patternString") public RegexGenerator(java.lang.String patternString)
patternString
- of type String@ConstructorProperties(value={"fieldDeclaration","patternString"}) public RegexGenerator(Fields fieldDeclaration, java.lang.String patternString)
fieldDeclaration
- of type FieldspatternString
- of type Stringpublic void prepare(FlowProcess flowProcess, OperationCall<Pair<java.util.regex.Matcher,TupleEntry>> operationCall)
BaseOperation
prepare
in interface Operation<Pair<java.util.regex.Matcher,TupleEntry>>
prepare
in class BaseOperation<Pair<java.util.regex.Matcher,TupleEntry>>
public void operate(FlowProcess flowProcess, FunctionCall<Pair<java.util.regex.Matcher,TupleEntry>> functionCall)
Function
operate
in interface Function<Pair<java.util.regex.Matcher,TupleEntry>>
flowProcess
- of type FlowProcessfunctionCall
- of type FunctionCallCopyright © 2007-2021 Cascading Maintainers. All Rights Reserved.