Package com._1c.g5.v8.bm.store
Class BmDurableIndexManager
java.lang.Object
com._1c.g5.v8.bm.store.BmDurableIndexManager
- All Implemented Interfaces:
IBmIndexManager
Durable index manager implementation. The indexes created by this manager survive the process termination.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.bm.store.IBmIndexManager
IBmIndexManager.BmIndexOptions, IBmIndexManager.BmIndexValueKind
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteIndex
(String name) Deletes the index with the specified name.<P> IBmPersistentIndex<P>
getIndex
(String name, IBmIndexManager.BmIndexValueKind valueKind, IBmIndexManager.BmIndexOptions... keys) P are any Java class or array.<P> IBmLongPersistentIndex<P>
getLongIndex
(String name, IBmIndexManager.BmIndexValueKind valueKind, IBmIndexManager.BmIndexOptions... keys) P are any Java class or array.void
start()
Starts the index manager.void
stop()
Stops the index manager.
-
Constructor Details
-
BmDurableIndexManager
Constructs a new instance.- Parameters:
storeDirectory
- The directory where index data are stored. May not benull
.
-
-
Method Details
-
deleteIndex
Description copied from interface:IBmIndexManager
Deletes the index with the specified name.- Specified by:
deleteIndex
in interfaceIBmIndexManager
- Parameters:
name
- The name. May not benull
.
-
getIndex
public <P> IBmPersistentIndex<P> getIndex(String name, IBmIndexManager.BmIndexValueKind valueKind, IBmIndexManager.BmIndexOptions... keys) Description copied from interface:IBmIndexManager
P are any Java class or array. Classes should be on java classpath. At the moment because of implementation support of custom POJO are not possible. keys could be any of {BmIndexOptions} options.- Specified by:
getIndex
in interfaceIBmIndexManager
-
getLongIndex
public <P> IBmLongPersistentIndex<P> getLongIndex(String name, IBmIndexManager.BmIndexValueKind valueKind, IBmIndexManager.BmIndexOptions... keys) Description copied from interface:IBmIndexManager
P are any Java class or array. Classes should be on java classpath. At the moment because of implementation support of custom POJO are not possible. keys could be any of {BmIndexOptions} options.- Specified by:
getLongIndex
in interfaceIBmIndexManager
-
start
public void start()Description copied from interface:IBmIndexManager
Starts the index manager.- Specified by:
start
in interfaceIBmIndexManager
-
stop
public void stop()Description copied from interface:IBmIndexManager
Stops the index manager.- Specified by:
stop
in interfaceIBmIndexManager
-