|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.readonly.ExternalSorter<V>
V - The type of value being sortedpublic class ExternalSorter<V>
Do an external sort on data coming from an input iterator and produce a new iterator over the values in sorted order
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
ExternalSorter(Serializer<V> serializer,
java.util.Comparator<V> comparator,
int internalSortSize,
int numThreads)
Create an external sorter using the given serializer and internal sort size. |
|
ExternalSorter(Serializer<V> serializer,
java.util.Comparator<V> comparator,
int internalSortSize,
java.lang.String tempDir,
int bufferSize,
int numThreads,
boolean gzip)
Create an external sorter using the given serializer and internal sort size. |
|
ExternalSorter(Serializer<V> serializer,
int internalSortSize,
int numThreads)
Create an external sorter using the given serializer and internal sort size. |
|
| Method Summary | |
|---|---|
java.lang.Iterable<V> |
sorted(java.util.Iterator<V> input)
Produce an iterator over the input values in sorted order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public ExternalSorter(Serializer<V> serializer,
int internalSortSize,
int numThreads)
serializer - The serializer used to write data to diskinternalSortSize - The number of objects in the internal sort buffer
public ExternalSorter(Serializer<V> serializer,
java.util.Comparator<V> comparator,
int internalSortSize,
int numThreads)
serializer - The serializer used to write data to diskcomparator - The comparator used to order the objectsinternalSortSize - The number of objects to keep in the internal
memory
public ExternalSorter(Serializer<V> serializer,
java.util.Comparator<V> comparator,
int internalSortSize,
java.lang.String tempDir,
int bufferSize,
int numThreads,
boolean gzip)
serializer - The serializer used to write data to diskcomparator - The comparator used to order the objectsinternalSortSize - The number of objects to keep in the internal
memorytempDir - The temporary directory to which to write temporary databufferSize - The IO buffer size| Method Detail |
|---|
public java.lang.Iterable<V> sorted(java.util.Iterator<V> input)
input - An iterator over the input values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||