public final class File2SeqOfWords extends AbstractTransformation<File,String>
outputPort
inputPort
logger
Constructor and Description |
---|
File2SeqOfWords()
charset = UTF-8
bufferCapacity = 1024
|
File2SeqOfWords(int bufferCapacity) |
File2SeqOfWords(String charset,
int bufferCapacity) |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(File textFile)
Contains the logic of this stage and is invoked (possibly multiple times) by the framework.
|
int |
getBufferCapacity() |
String |
getCharset() |
getOutputPort
createInputPort, execute, getInputPort
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInputPort
public File2SeqOfWords()
public File2SeqOfWords(int bufferCapacity)
public File2SeqOfWords(String charset, int bufferCapacity)
protected void execute(File textFile)
AbstractConsumerStage
execute
in class AbstractConsumerStage<File>
textFile
- the next non-null element from the (only) input port of this stagepublic String getCharset()
public int getBufferCapacity()
Copyright © 2015–2020. All rights reserved.