cascading.operation.regex
Class RegexReplace
java.lang.Object
cascading.operation.BaseOperation<C>
cascading.operation.regex.RegexOperation<Pair<java.util.regex.Matcher,Tuple>>
cascading.operation.regex.RegexReplace
- All Implemented Interfaces:
- Function<Pair<java.util.regex.Matcher,Tuple>>, Operation<Pair<java.util.regex.Matcher,Tuple>>, java.io.Serializable
public class RegexReplace
- extends RegexOperation<Pair<java.util.regex.Matcher,Tuple>>
- implements Function<Pair<java.util.regex.Matcher,Tuple>>
Class RegexReplace is used to replace a matched regex with a replacement value.
RegexReplace only expects one field value. If more than one argument value is passed, only the
first is handled, the remainder are ignored.
- See Also:
- Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
RegexReplace(Fields fieldDeclaration,
java.lang.String patternString,
java.lang.String replacement)
Constructor RegexReplace creates a new RegexReplace instance. |
RegexReplace(Fields fieldDeclaration,
java.lang.String patternString,
java.lang.String replacement,
boolean replaceAll)
Constructor RegexReplace creates a new RegexReplace instance, |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RegexReplace
@ConstructorProperties(value={"fieldDeclaration","patternString","replacement","replaceAll"})
public RegexReplace(Fields fieldDeclaration,
java.lang.String patternString,
java.lang.String replacement,
boolean replaceAll)
- Constructor RegexReplace creates a new RegexReplace instance,
- Parameters:
fieldDeclaration
- of type FieldspatternString
- of type Stringreplacement
- of type StringreplaceAll
- of type boolean
RegexReplace
@ConstructorProperties(value={"fieldDeclaration","patternString","replacement"})
public RegexReplace(Fields fieldDeclaration,
java.lang.String patternString,
java.lang.String replacement)
- Constructor RegexReplace creates a new RegexReplace instance.
- Parameters:
fieldDeclaration
- of type FieldspatternString
- of type Stringreplacement
- of type String
prepare
public void prepare(FlowProcess flowProcess,
OperationCall<Pair<java.util.regex.Matcher,Tuple>> operationCall)
- Description copied from class:
BaseOperation
- Method prepare does nothing, and may safely be overridden.
- Specified by:
prepare
in interface Operation<Pair<java.util.regex.Matcher,Tuple>>
- Overrides:
prepare
in class BaseOperation<Pair<java.util.regex.Matcher,Tuple>>
operate
public void operate(FlowProcess flowProcess,
FunctionCall<Pair<java.util.regex.Matcher,Tuple>> functionCall)
- Description copied from interface:
Function
- Method operate provides the implementation of this Function.
- Specified by:
operate
in interface Function<Pair<java.util.regex.Matcher,Tuple>>
- Parameters:
flowProcess
- of type FlowProcessfunctionCall
- of type FunctionCall
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class RegexOperation<Pair<java.util.regex.Matcher,Tuple>>
hashCode
public int hashCode()
- Overrides:
hashCode
in class RegexOperation<Pair<java.util.regex.Matcher,Tuple>>
Copyright © 2007-2011 Concurrent, Inc. All Rights Reserved.