Package com._1c.g5.v8.xmdb.impl
Class DatabaseInMemory
java.lang.Object
com._1c.g5.v8.xmdb.impl.DatabaseInMemory
- All Implemented Interfaces:
- Database
In memory database (no real file operations)
- 
Field SummaryFields inherited from interface com._1c.g5.v8.xmdb.DatabaseOPEN_STATE_CLEAR, OPEN_STATE_ERROR, OPEN_STATE_NEW
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddIndex(KeyValueStorage kvs, String name) Register kvs index (builded on these database) in descriptions chainvoidReopen file descriptors, used by databasevoidclose()Close database (with sync and correct close resources)voidClose file descriptors, used by databsevoiddrop()Drop database (drop caches, detach and delete files)voidUnregister index from descriptions chaingetCache()Get database internal cacheGet database internal engineGet registered index by nameintGet total number of registered indexintGet first free (in these database) segment id.intGet database open statusvoidsync()Sync complete database to file(s)
- 
Constructor Details- 
DatabaseInMemory
 
- 
- 
Method Details- 
syncpublic void sync()Description copied from interface:DatabaseSync complete database to file(s)
- 
closepublic void close()Description copied from interface:DatabaseClose database (with sync and correct close resources)
- 
detachStoragepublic void detachStorage()Description copied from interface:DatabaseClose file descriptors, used by databse- Specified by:
- detachStoragein interface- Database
 
- 
attachStoragepublic void attachStorage()Description copied from interface:DatabaseReopen file descriptors, used by database- Specified by:
- attachStoragein interface- Database
 
- 
dropIndexDescription copied from interface:DatabaseUnregister index from descriptions chain
- 
addIndexDescription copied from interface:DatabaseRegister kvs index (builded on these database) in descriptions chain
- 
getIndexDescription copied from interface:DatabaseGet registered index by name
- 
getCacheDescription copied from interface:DatabaseGet database internal cache
- 
getEngineDescription copied from interface:DatabaseGet database internal engine
- 
getNextSegmentIdpublic int getNextSegmentId()Description copied from interface:DatabaseGet first free (in these database) segment id. Method mark segment as used- Specified by:
- getNextSegmentIdin interface- Database
- Returns:
- free segment id
 
- 
getIndexCountpublic int getIndexCount()Description copied from interface:DatabaseGet total number of registered index- Specified by:
- getIndexCountin interface- Database
- Returns:
 
- 
droppublic void drop()Description copied from interface:DatabaseDrop database (drop caches, detach and delete files)
- 
getOpenStatepublic int getOpenState()Description copied from interface:DatabaseGet database open status- Specified by:
- getOpenStatein interface- Database
- Returns:
- database OPEN_STATE
 
 
-