cascading.operation.regex
Class RegexSplitGenerator
java.lang.Object
cascading.operation.BaseOperation<C>
cascading.operation.regex.RegexOperation
cascading.operation.regex.RegexSplitGenerator
- All Implemented Interfaces:
- Function, Operation, Serializable
public class RegexSplitGenerator
- extends RegexOperation
- implements Function
Class RegexGenerator will emit a new Tuple for every split on the incoming argument value delimited by the given patternString.
This could be used to break a document into single word tuples for later processing for a word count.
- See Also:
- Serialized Form
| Fields inherited from interface cascading.operation.Operation |
ANY |
RegexSplitGenerator
public RegexSplitGenerator(String patternString)
- Constructor RegexGenerator creates a new RegexGenerator instance.
- Parameters:
patternString - of type String
RegexSplitGenerator
public RegexSplitGenerator(Fields fieldDeclaration,
String patternString)
- Constructor RegexGenerator creates a new RegexGenerator instance.
- Parameters:
fieldDeclaration - of type FieldspatternString - of type String
operate
public void operate(FlowProcess flowProcess,
FunctionCall functionCall)
- Description copied from interface:
Function
- Method operate provides the implementation of this Function.
- Specified by:
operate in interface Function
- Parameters:
flowProcess - of type FlowProcessfunctionCall - of type FunctionCall- See Also:
Function.operate(cascading.flow.FlowProcess,cascading.operation.FunctionCall)
Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.