public class RegexSplitter extends RegexOperation<Pair<Pattern,Tuple>> implements Function<Pair<Pattern,Tuple>>
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 |
---|
RegexSplitter(Fields fieldDeclaration)
Constructor RegexOperation creates a new RegexOperation instance, where the delimiter is the tab character.
|
RegexSplitter(Fields fieldDeclaration,
String patternString)
Constructor RegexSplitter creates a new RegexSplitter instance.
|
RegexSplitter(String patternString)
Constructor RegexSplitter creates a new RegexSplitter instance.
|
Modifier and Type | Method and Description |
---|---|
void |
operate(FlowProcess flowProcess,
FunctionCall<Pair<Pattern,Tuple>> functionCall)
Method operate provides the implementation of this Function.
|
void |
prepare(FlowProcess flowProcess,
OperationCall<Pair<Pattern,Tuple>> 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 RegexSplitter(String patternString)
patternString
- of type String@ConstructorProperties(value="fieldDeclaration") public RegexSplitter(Fields fieldDeclaration)
fieldDeclaration
- of type Fields@ConstructorProperties(value={"fieldDeclaration","patternString"}) public RegexSplitter(Fields fieldDeclaration, String patternString)
fieldDeclaration
- of type FieldspatternString
- of type Stringpublic void prepare(FlowProcess flowProcess, OperationCall<Pair<Pattern,Tuple>> operationCall)
BaseOperation
public void operate(FlowProcess flowProcess, FunctionCall<Pair<Pattern,Tuple>> functionCall)
Function
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.