org.galagosearch.tupleflow
Class StandardStep<T,U>

java.lang.Object
  extended by 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

Field Summary
 Processor<U> processor
           
 
Constructor Summary
StandardStep()
           
 
Method Summary
 void close()
           
abstract  void process(T object)
           
 void setProcessor(Step next)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processor

public Processor<U> processor
Constructor Detail

StandardStep

public StandardStep()
Method Detail

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.