Package com._1c.g5.v8.bm.store
Class BmDurableIndexManager
- java.lang.Object
-
- com._1c.g5.v8.bm.store.BmDurableIndexManager
-
- All Implemented Interfaces:
IBmIndexManager
public final class BmDurableIndexManager extends Object implements 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 Constructor Description BmDurableIndexManager(File storeDirectory)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteIndex(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.voidstart()Starts the index manager.voidstop()Stops the index manager.
-
-
-
Constructor Detail
-
BmDurableIndexManager
public BmDurableIndexManager(File storeDirectory)
Constructs a new instance.- Parameters:
storeDirectory- The directory where index data are stored. May not benull.
-
-
Method Detail
-
deleteIndex
public void deleteIndex(String name)
Description copied from interface:IBmIndexManagerDeletes the index with the specified name.- Specified by:
deleteIndexin 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:IBmIndexManagerP 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:
getIndexin interfaceIBmIndexManager
-
getLongIndex
public <P> IBmLongPersistentIndex<P> getLongIndex(String name, IBmIndexManager.BmIndexValueKind valueKind, IBmIndexManager.BmIndexOptions... keys)
Description copied from interface:IBmIndexManagerP 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:
getLongIndexin interfaceIBmIndexManager
-
start
public void start()
Description copied from interface:IBmIndexManagerStarts the index manager.- Specified by:
startin interfaceIBmIndexManager
-
stop
public void stop()
Description copied from interface:IBmIndexManagerStops the index manager.- Specified by:
stopin interfaceIBmIndexManager
-
-