public final class Sorter<T> extends Object
| Constructor and Description |
|---|
Sorter(cc.redberry.pipe.OutputPort<T> initialSource,
Comparator<T> comparator,
int chunkSize,
ObjectSerializer<T> serializer,
File tempFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
cc.redberry.pipe.OutputPortCloseable<T> |
getSorted() |
static <T> cc.redberry.pipe.OutputPortCloseable<T> |
sort(cc.redberry.pipe.OutputPort<T> initialSource,
Comparator<T> comparator,
int chunkSize,
Class<T> clazz,
File tempFile)
Sort objects supporting PrimitivIO serialization.
|
static <T> cc.redberry.pipe.OutputPortCloseable<T> |
sort(cc.redberry.pipe.OutputPort<T> initialSource,
Comparator<T> comparator,
int chunkSize,
ObjectSerializer<T> serializer,
File tempFile) |
public Sorter(cc.redberry.pipe.OutputPort<T> initialSource, Comparator<T> comparator, int chunkSize, ObjectSerializer<T> serializer, File tempFile)
public static <T> cc.redberry.pipe.OutputPortCloseable<T> sort(cc.redberry.pipe.OutputPort<T> initialSource,
Comparator<T> comparator,
int chunkSize,
Class<T> clazz,
File tempFile)
throws IOException
IOExceptionpublic static <T> cc.redberry.pipe.OutputPortCloseable<T> sort(cc.redberry.pipe.OutputPort<T> initialSource,
Comparator<T> comparator,
int chunkSize,
ObjectSerializer<T> serializer,
File tempFile)
throws IOException
IOExceptionpublic void build()
throws IOException
IOExceptionpublic cc.redberry.pipe.OutputPortCloseable<T> getSorted() throws IOException
IOExceptionCopyright © 2018. All rights reserved.