mavibot/src/main/java/org/apache/directory/mavibot/btree/BTreeFactory.java [377:400]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        configuration.setKeySerializer( keySerializer );
        configuration.setValueSerializer( valueSerializer );
        configuration.setPageSize( pageSize );
        configuration.setAllowDuplicates( BTree.FORBID_DUPLICATES );
        configuration.setWriteBufferSize( BTree.DEFAULT_WRITE_BUFFER_SIZE );

        BTree<K, V> btree = new InMemoryBTree<K, V>( configuration );

        return btree;
    }


    /**
     * Creates a new in-memory B-tree using the parameters to initialize the
     * B-tree
     *
     * @param name The B-tree's name
     * @param filePath The name of the data directory with absolute path
     * @param keySerializer Key serializer
     * @param valueSerializer Value serializer
     * @return a new B-tree instance
     */
    public static <K, V> BTree<K, V> createInMemoryBTree( String name, String filePath,
        ElementSerializer<K> keySerializer,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



mavibot/src/main/java/org/apache/directory/mavibot/btree/BTreeFactory.java [437:462]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        configuration.setKeySerializer( keySerializer );
        configuration.setValueSerializer( valueSerializer );
        configuration.setPageSize( pageSize );
        configuration.setAllowDuplicates( BTree.FORBID_DUPLICATES );
        configuration.setWriteBufferSize( BTree.DEFAULT_WRITE_BUFFER_SIZE );

        BTree<K, V> btree = new InMemoryBTree<K, V>( configuration );

        return btree;
    }


    /**
     * Creates a new in-memory B-tree using the parameters to initialize the
     * B-tree
     *
     * @param name The B-tree's name
     * @param filePath The name of the data directory with absolute path
     * @param keySerializer Key serializer
     * @param valueSerializer Value serializer
     * @param pageSize Size of the page
     * @param allowDuplicates Tells if the B-tree allows multiple value for a given key
     * @return a new B-tree instance
     */
    public static <K, V> BTree<K, V> createInMemoryBTree( String name, String filePath,
        ElementSerializer<K> keySerializer,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



