Package org.apache.directory.mavibot.btree

Examples of org.apache.directory.mavibot.btree.RecordManager


    @Before
    public void setup() throws IOException
    {
        dbFileDir = tempFolder.newFolder( MavibotIndexTest.class.getSimpleName() );

        recordMan = new RecordManager( dbFileDir.getAbsolutePath() );
    }
View Full Code Here



    @Before
    public void setup() throws IOException
    {
        recordMan = new RecordManager( tmpDir.getRoot().getAbsolutePath() );
    }
View Full Code Here

    @Before
    public void createTable() throws Exception
    {
        destroyTable();

        recordMan = new RecordManager( tmpDir.getRoot().getAbsolutePath() );

        table = new MavibotMasterTable( recordMan, schemaManager, "master" );
        LOG.debug( "Created new table and populated it with data" );
    }
View Full Code Here

            else
            {
                LOG.debug( "Using the custom configured cache size of {} for {} partition", cacheSize, id );
            }

            recordMan = new RecordManager( partitionDir.getPath() );

            // Initialize the indexes
            super.doInit();

            // First, check if the file storing the data exists
View Full Code Here

        config.setValueSerializer( StringSerializer.INSTANCE );

        BTree<Entry, String> btree = BTreeFactory.createPersistedBTree( config );

        File file = File.createTempFile( btree.getName(), ".sorted-data" );
        RecordManager recMan = new RecordManager( file.getAbsolutePath() );

        try
        {
            recMan.manage( btree );
        }
        catch ( BTreeAlreadyManagedException e )
        {
            throw new LdapException( e );
        }
View Full Code Here

        }

        MavibotPartition mavibotPartition = ( MavibotPartition ) partition;
        Set<Index<?, ?, String>> indexedAttributes = mavibotPartition.getIndexedAttributes();

        RecordManager recordMan = ( ( MavibotPartition ) partition ).getRecordMan();
       
        MavibotIndex<Object, Entry> index = new MavibotIndex<Object, Entry>( recordMan, attributeId, false );
        index.setCacheSize( cacheSize );

        indexedAttributes.add( index );
View Full Code Here

            if ( !partitionDir.exists() && !partitionDir.mkdirs() )
            {
                throw new IOException( I18n.err( I18n.ERR_112_COULD_NOT_CREATE_DIRECORY, partitionDir ) );
            }

            recordMan = new RecordManager( partitionDir.getPath() );

            // Initialize the indexes
            super.doInit();

            // First, check if the file storing the data exists
View Full Code Here


    @Before
    public void setup() throws IOException
    {
        recordMan = new RecordManager( tmpDir.getRoot().getAbsolutePath() );
    }
View Full Code Here

    @Before
    public void createTable() throws Exception
    {
        destroyTable();

        recordMan = new RecordManager( tmpDir.getRoot().getAbsolutePath() );
       
        table = new MavibotMasterTable( recordMan, schemaManager, "master" );
        LOG.debug( "Created new table and populated it with data" );
    }
View Full Code Here

    @Before
    public void setup() throws IOException
    {
        dbFileDir = tempFolder.newFolder( MavibotIndexTest.class.getSimpleName() );

        recordMan = new RecordManager( dbFileDir.getAbsolutePath() );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.mavibot.btree.RecordManager

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.