| Modifier and Type | Class and Description |
|---|---|
static class |
BufferedExternalSorter.Options
Contains configuration for the sorter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(KV<byte[],byte[]> record)
Adds a given record to the sorter.
|
static BufferedExternalSorter |
create(BufferedExternalSorter.Options options) |
Iterable<KV<byte[],byte[]>> |
sort()
Sorts the added elements and returns an
Iterable over the sorted elements. |
public static BufferedExternalSorter create(BufferedExternalSorter.Options options)
public void add(KV<byte[],byte[]> record) throws IOException
Records can only be added before calling sort().
IOExceptionpublic Iterable<KV<byte[],byte[]>> sort() throws IOException
Iterable over the sorted elements.
Can be called at most once.
IOExceptionCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.