public class WordCounter extends CompositeStage implements ITaskFarmDuplicable<String,CountingMap<String>>, CompositeStateLoggable
CountingMap
) is passed on upon termination.DEFAULT_PIPE_CAPACITY
Constructor and Description |
---|
WordCounter() |
Modifier and Type | Method and Description |
---|---|
ITaskFarmDuplicable<String,CountingMap<String>> |
duplicate()
Creates a new instance of the enclosed stage.
|
InputPort<String> |
getInputPort() |
OutputPort<CountingMap<String>> |
getOutputPort() |
void |
registerStatebles() |
connectPorts, connectPorts, createInputPort, createOutputPort
public InputPort<String> getInputPort()
getInputPort
in interface ITransformation<String,CountingMap<String>>
getInputPort
in interface ITaskFarmDuplicable<String,CountingMap<String>>
public OutputPort<CountingMap<String>> getOutputPort()
getOutputPort
in interface ITransformation<String,CountingMap<String>>
getOutputPort
in interface ITaskFarmDuplicable<String,CountingMap<String>>
public ITaskFarmDuplicable<String,CountingMap<String>> duplicate()
ITaskFarmDuplicable
duplicate
in interface ITaskFarmDuplicable<String,CountingMap<String>>
public void registerStatebles()
registerStatebles
in interface CompositeStateLoggable
Copyright © 2015–2020. All rights reserved.