cascading.operation.regex
Class RegexSplitGenerator

java.lang.Object
  extended by cascading.operation.BaseOperation<C>
      extended by cascading.operation.regex.RegexOperation
          extended by 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

Field Summary
 
Fields inherited from class cascading.operation.regex.RegexOperation
patternString
 
Fields inherited from class cascading.operation.BaseOperation
fieldDeclaration, numArgs, trace
 
Fields inherited from interface cascading.operation.Operation
ANY
 
Constructor Summary
RegexSplitGenerator(Fields fieldDeclaration, String patternString)
          Constructor RegexGenerator creates a new RegexGenerator instance.
RegexSplitGenerator(String patternString)
          Constructor RegexGenerator creates a new RegexGenerator instance.
 
Method Summary
 void operate(FlowProcess flowProcess, FunctionCall functionCall)
          Method operate provides the implementation of this Function.
 
Methods inherited from class cascading.operation.regex.RegexOperation
getPattern
 
Methods inherited from class cascading.operation.BaseOperation
cleanup, getFieldDeclaration, getNumArgs, getTrace, prepare, printOperationInternal, toString, toStringInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cascading.operation.Operation
cleanup, getFieldDeclaration, getNumArgs, prepare
 

Constructor Detail

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 Fields
patternString - of type String
Method Detail

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 FlowProcess
functionCall - of type FunctionCall
See Also:
Function.operate(cascading.flow.FlowProcess,cascading.operation.FunctionCall)


Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.