org.apache.directory.mavibot.btree.persisted

## Class BulkDataSorter<K,V>

- java.lang.Object
- - org.apache.directory.mavibot.btree.persisted.BulkDataSorter<K,V>

-     public class BulkDataSorter<K,V>
      extends Object

  A utility class for sorting a large number of keys before building a BTree using `PersistedBTreeBuilder`.
  Author:
    Apache Directory Project

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BulkDataSorter(TupleReaderWriter<K,V> readerWriter, Comparator<Tuple<K,V>> tupleComparator, int splitAfter)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Iterator<Tuple<K,V>>` | `getMergeSortedTuples()`
    `File` | `getWorkDir()`
    `void` | `sort(File dataFile)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BulkDataSorter

          public BulkDataSorter(TupleReaderWriter<K,V> readerWriter,
                        Comparator<Tuple<K,V>> tupleComparator,
                        int splitAfter)

  - ### Method Detail

    - #### sort

          public void sort(File dataFile)
                    throws IOException

      Throws:
        `IOException`

    - #### getWorkDir

          public File getWorkDir()

    - #### getMergeSortedTuples

          public Iterator<Tuple<K,V>> getMergeSortedTuples()
                                                    throws IOException

      Throws:
        `IOException`

Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.