Package org.elasticsearch.index.store.ram

Examples of org.elasticsearch.index.store.ram.RamStore$CustomRAMDirectory


        ShardId shardId = new ShardId(new Index("index"), 1);
        String type = args.length > 0 ? args[0] : "ram";
        Store store;
        if (type.equalsIgnoreCase("ram")) {
            store = new RamStore(shardId, settings, null);
        } else if (type.equalsIgnoreCase("simple-fs")) {
            store = new SimpleFsStore(shardId, settings, new SimpleFsIndexStore(shardId.index(), settings, null, nodeEnvironment), byteBufferCache);
        } else if (type.equalsIgnoreCase("mmap-fs")) {
            store = new NioFsStore(shardId, settings, new NioFsIndexStore(shardId.index(), settings, null, nodeEnvironment), byteBufferCache);
        } else if (type.equalsIgnoreCase("nio-fs")) {
View Full Code Here


        engine.close();
        store.close();
    }

    protected Store createStore() throws IOException {
        return new RamStore(shardId, EMPTY_SETTINGS, null);
    }
View Full Code Here

    protected Store createStore() throws IOException {
        return new RamStore(shardId, EMPTY_SETTINGS, null);
    }

    protected Store createStoreReplica() throws IOException {
        return new RamStore(shardId, EMPTY_SETTINGS, null);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.store.ram.RamStore$CustomRAMDirectory

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.