Examples of GridFsStorage


Examples of mungbean.gridfs.GridFsStorage

    }

    public GridFsStorage openStorage(String name) {
        DBCollection<GridFsFile> storageCollection = openStorageCollection(name + ".files", GridFsFile.class);
        storageCollection.collectionAdmin().ensureIndex(new IndexOptionsBuilder().field("files_id").field("n"));
        GridFsStorage storage = new GridFsStorage(storageCollection, openStorageCollection(name + ".chunks", GridFsChunk.class));
        return storage;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.