Package org.neo4j.kernel.impl.index

Examples of org.neo4j.kernel.impl.index.IndexStore


        neoStore.makeStoreOk();
        NameData[] indexes = getPropertyIndexStore().getNames( 10000 );
        indexHolder = new PropertyIndexHolder( indexes );
        NameData[] types = getRelationshipTypeStore().getNames( Integer.MAX_VALUE );
        typeHolder = new RelationshipTypeHolder( types );
        indexStore = new IndexStore( this.storeDir, fileSystem );
        indexStore.start();
    }
View Full Code Here


        neoStore.makeStoreOk();
        NameData[] indexes = getPropertyIndexStore().getNames( 10000 );
        indexHolder = new PropertyIndexHolder( indexes );
        NameData[] types = getRelationshipTypeStore().getNames( Integer.MAX_VALUE );
        typeHolder = new RelationshipTypeHolder( types );
        indexStore = new IndexStore( storeDir, fileSystem );
    }
View Full Code Here

        config.getParams().put( LogBufferFactory.class,
                CommonFactories.defaultLogBufferFactory( config.getParams() ) );
        graphDbInstance = new GraphDbInstance( storeDir, true, config );
        this.msgLog = StringLogger.getLogger( storeDir );
        this.graphDbService = graphDbService;
        IndexStore indexStore = graphDbInstance.getConfig().getIndexStore();
        this.indexManager = new IndexManagerImpl( this, indexStore );

        extensions = new KernelData()
        {
            @Override
View Full Code Here

        // new EmbeddedGraphDatabase( getDbPath() ).shutdown();
       
        // Instead I have to do this
        Map<Object, Object> params = MapUtil.genericMap(
                "store_dir", getDbPath(),
                IndexStore.class, new IndexStore( getDbPath() ),
                LogBufferFactory.class, CommonFactories.defaultLogBufferFactory( MapUtil.stringMap() ) );
        LuceneDataSource ds = new LuceneDataSource( params );
        ds.close();
    }
View Full Code Here

        indexHolder = new PropertyIndexHolder( indexes );
        RelationshipTypeData[] types =
            getRelationshipTypeStore().getRelationshipTypes();
        typeHolder = new RelationshipTypeHolder( types );
        graphDbService = new BatchGraphDatabaseImpl( this );
        indexStore = new IndexStore( storeDir );
    }
View Full Code Here

        this.cacheManager = new AdaptiveCacheManager();
        this.params.put( FileSystemAbstraction.class, fileSystem );
        graphDbModule = new GraphDbModule( graphDb, cacheManager, lockManager,
                txModule.getTxManager(), idGeneratorModule.getIdGenerator(),
                readOnly );
        indexStore = new IndexStore( storeDir );
        params.put( IndexStore.class, indexStore );

        if ( storeId != null ) params.put( StoreId.class, storeId );
        params.put( IdGeneratorFactory.class, idGeneratorFactory );
        params.put( TxIdGenerator.class, txIdGenerator );
View Full Code Here

        graphDb.shutdown();
    }

    private void removeProvidersFromIndexDbFile( File storeDir )
    {
        IndexStore indexStore = new IndexStore( storeDir.getPath() );
        for ( Class<? extends PropertyContainer> cls : new Class[] {Node.class, Relationship.class} )
        {
            for ( String name : indexStore.getNames( cls ) )
            {
                Map<String, String> config = indexStore.get( cls, name );
                config = new HashMap<String, String>( config );
                config.remove( "provider" );
                indexStore.set( Node.class, name, config );
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.neo4j.kernel.impl.index.IndexStore

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.