public class SortedIdAndVersionStream extends Object implements IdAndVersionStream
IdAndVersionStream implementation that wraps another and sorts it using Sorter, writing the data to
temporary files| Constructor and Description |
|---|
SortedIdAndVersionStream(IdAndVersionFactory idAndVersionFactory,
IdAndVersionStream unsortedStream) |
SortedIdAndVersionStream(IdAndVersionFactory idAndVersionFactory,
IdAndVersionStream unsortedStream,
String workingDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected com.fasterxml.sort.SortConfig |
createSortConfig() |
boolean |
isSorted() |
Iterator<IdAndVersion> |
iterator() |
void |
open()
download stream and sort it
|
static IdAndVersionStream |
wrapIfNecessary(IdAndVersionStream stream,
IdAndVersionFactory idAndVersionFactory) |
public SortedIdAndVersionStream(IdAndVersionFactory idAndVersionFactory, IdAndVersionStream unsortedStream)
public SortedIdAndVersionStream(IdAndVersionFactory idAndVersionFactory, IdAndVersionStream unsortedStream, String workingDirectory)
public static IdAndVersionStream wrapIfNecessary(IdAndVersionStream stream, IdAndVersionFactory idAndVersionFactory)
public boolean isSorted()
isSorted in interface IdAndVersionStreamtrue if this stream is suitable for verification. False if not sorted or order unknown (or
irrelevant)public void open()
open in interface IdAndVersionStreamprotected com.fasterxml.sort.SortConfig createSortConfig()
public Iterator<IdAndVersion> iterator()
iterator in interface IdAndVersionStreamiterator in interface Iterable<IdAndVersion>public void close()
close in interface IdAndVersionStreamCopyright © 2011-2016 Molindo GmbH. All Rights Reserved.