org.galagosearch.tupleflow
Class Splitter<T>
java.lang.Object
org.galagosearch.tupleflow.Splitter<T>
- All Implemented Interfaces:
- Processor<T>, Step
public class Splitter<T>
- extends java.lang.Object
- implements Processor<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Splitter
public Splitter(Processor<T>[] processors,
Order<T> order)
splitToFiles
public static <S> Splitter<S> splitToFiles(java.lang.String[] filenames,
Order<S> sortOrder,
Order<S> hashOrder)
throws java.io.IOException,
IncompatibleProcessorException
- Throws:
java.io.IOException
IncompatibleProcessorException
splitToFiles
public static <S> Splitter<S> splitToFiles(java.lang.String[] filenames,
Order<S> sortOrder,
Order<S> hashOrder,
java.lang.Class reducerClass)
throws java.io.IOException,
IncompatibleProcessorException
- Throws:
java.io.IOException
IncompatibleProcessorException
splitToFiles
public static <S> Splitter splitToFiles(java.lang.String prefix,
int limit,
Type<S> type,
Order<S> order,
int count)
throws java.io.IOException,
java.io.FileNotFoundException,
IncompatibleProcessorException
- Throws:
java.io.IOException
java.io.FileNotFoundException
IncompatibleProcessorException
process
public void process(T object)
throws java.io.IOException
- Specified by:
process in interface Processor<T>
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface Processor<T>
- Throws:
java.io.IOException
Copyright © 2009. All Rights Reserved.