org.galagosearch.tupleflow
Class StandardStep<T,U>
java.lang.Object
org.galagosearch.tupleflow.StandardStep<T,U>
- All Implemented Interfaces:
- Processor<T>, Source<U>, Step
- Direct Known Subclasses:
- Sorter, XMLMinimum
public abstract class StandardStep<T,U>
- extends java.lang.Object
- implements Processor<T>, Source<U>
This is the base class for most TupleFlow steps. Most TupleFlow steps convert
data from some type T to some type U, then call the process method on some other
processor. This class abstracts the details of implementing that kind of class.
- Author:
- trevor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
processor
public Processor<U> processor
StandardStep
public StandardStep()
process
public abstract void process(T object)
throws java.io.IOException
- Specified by:
process in interface Processor<T>
- Throws:
java.io.IOException
setProcessor
public void setProcessor(Step next)
throws IncompatibleProcessorException
- Specified by:
setProcessor in interface Source<U>
- Throws:
IncompatibleProcessorException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface Processor<T>
- Throws:
java.io.IOException
Copyright © 2009. All Rights Reserved.