Package org.apache.directory.mavibot.btree.persisted

Examples of org.apache.directory.mavibot.btree.persisted.BulkDataSorter


    private void sort() throws Exception
    {
        LdifTupleReaderWriter readerWriter = new LdifTupleReaderWriter();
        LdifTupleComparator tupleComparator = new LdifTupleComparator();
       
        BulkDataSorter bs = new BulkDataSorter<Dn, String>( readerWriter, tupleComparator, 2 );
       
        File file = createLdif();
       
        bs.sort( file );
       
        Iterator<Tuple<Dn, String>> itr = bs.getMergeSortedTuples();
        while( itr.hasNext() )
        {
            Tuple t = itr.next();
            System.out.println( t.getKey() + " - " + t.getValue() );
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.mavibot.btree.persisted.BulkDataSorter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.