public class MemoryDatabase
extends de.bwaldvogel.mongo.backend.AbstractMongoDatabase<java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
MemoryDatabase(de.bwaldvogel.mongo.MongoBackend backend,
java.lang.String databaseName) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getFileSize() |
protected long |
getStorageSize() |
protected MemoryCollection |
openOrCreateCollection(java.lang.String collectionName,
java.lang.String idField) |
protected MemoryUniqueIndex |
openOrCreateUniqueIndex(java.lang.String collectionName,
java.lang.String key,
boolean ascending) |
addIndex, addNamespace, checkCollectionName, clearLastStatus, commandCount, commandCreateIndexes, commandDatabaseStats, commandDelete, commandDrop, commandGetLastError, commandGetPrevError, commandInsert, commandResetError, commandUpdate, countIndexes, createCollection, deleteDocuments, deregisterCollection, drop, dropCollection, getDatabaseName, handleClose, handleCommand, handleDelete, handleInsert, handleQuery, handleUpdate, initializeNamespacesAndIndexes, insertDocuments, isEmpty, listCollections, listIndexes, moveCollection, putLastError, putLastResult, resolveCollection, resolveOrCreateCollection, toString, updateDocumentspublic MemoryDatabase(de.bwaldvogel.mongo.MongoBackend backend,
java.lang.String databaseName)
throws de.bwaldvogel.mongo.exception.MongoServerException
de.bwaldvogel.mongo.exception.MongoServerExceptionprotected MemoryCollection openOrCreateCollection(java.lang.String collectionName, java.lang.String idField)
openOrCreateCollection in class de.bwaldvogel.mongo.backend.AbstractMongoDatabase<java.lang.Integer>protected MemoryUniqueIndex openOrCreateUniqueIndex(java.lang.String collectionName, java.lang.String key, boolean ascending)
openOrCreateUniqueIndex in class de.bwaldvogel.mongo.backend.AbstractMongoDatabase<java.lang.Integer>protected long getStorageSize()
getStorageSize in class de.bwaldvogel.mongo.backend.AbstractMongoDatabase<java.lang.Integer>protected long getFileSize()
getFileSize in class de.bwaldvogel.mongo.backend.AbstractMongoDatabase<java.lang.Integer>