Package com._1c.g5.v8.bm.store
Class BmStores
- java.lang.Object
- 
- com._1c.g5.v8.bm.store.BmStores
 
- 
 public final class BmStores extends Object Factory methods for stores.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static IBmPersistentLongStorecreateLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold)Creates a log-structured file store with long keys.static IBmPersistentLongStorecreateLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold)Creates a log-structured file store with long keys.static IBmPersistentLongStorecreateMemoryMappedLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold)Creates a memory-mapped log-structured file store with long keys.static IBmPersistentLongStorecreateMemoryMappedLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold)Creates a memory-mapped log-structured file store with long keys.static <K> IBmPersistentObjectKeyStore<K>createObjectKeyLogStructuredFileStore(IBmSerializer<K> keySerializer, Path path, int fileSizeCompactionThreshold)Creates a log-structured file store with particular object type keys.static <K> IBmPersistentObjectKeyStore<K>createObjectKeyLogStructuredFileStore(IBmSerializer<K> keySerializer, Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold)Creates a log-structured file store with particular object type keys.static IBmPersistentStringStorecreateStringLogStructuredFileStore(Path path, int fileSizeCompactionThreshold)Creates a log-structured file store with string keys.static IBmPersistentStringStorecreateStringLogStructuredFileStore(Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold)Creates a log-structured file store with string keys.static IBmPersistentStringRegistrycreateStringRegistry(Path path)Creates a persistent string registry.static IBmPersistentStringRegistrycreateStringRegistry(Path path, int maxAllowedId)Creates a persistent string registry.static IBmWalcreateWal(Path path)Creates a write-ahead log.static IBmWorkLogcreateWorkLog(Path path, long sizeThreshold)Deprecated.UsecreateWal(Path).
 
- 
- 
- 
Method Detail- 
createLongLogStructuredFileStorepublic static IBmPersistentLongStore createLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold) Creates a log-structured file store with long keys.- Parameters:
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createLongLogStructuredFileStorepublic static IBmPersistentLongStore createLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold) Creates a log-structured file store with long keys.- Parameters:
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- wastePercentageCompactionThreshold- The waste percentage that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createMemoryMappedLongLogStructuredFileStorepublic static IBmPersistentLongStore createMemoryMappedLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold) Creates a memory-mapped log-structured file store with long keys.- Parameters:
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createMemoryMappedLongLogStructuredFileStorepublic static IBmPersistentLongStore createMemoryMappedLongLogStructuredFileStore(Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold) Creates a memory-mapped log-structured file store with long keys.- Parameters:
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- wastePercentageCompactionThreshold- The waste percentage that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createStringLogStructuredFileStorepublic static IBmPersistentStringStore createStringLogStructuredFileStore(Path path, int fileSizeCompactionThreshold) Creates a log-structured file store with string keys.- Parameters:
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createStringLogStructuredFileStorepublic static IBmPersistentStringStore createStringLogStructuredFileStore(Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold) Creates a log-structured file store with string keys.- Parameters:
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- wastePercentageCompactionThreshold- The waste percentage that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createObjectKeyLogStructuredFileStorepublic static <K> IBmPersistentObjectKeyStore<K> createObjectKeyLogStructuredFileStore(IBmSerializer<K> keySerializer, Path path, int fileSizeCompactionThreshold) Creates a log-structured file store with particular object type keys.- Type Parameters:
- K- The store key type.
- Parameters:
- keySerializer- The key serializer. May not be- null.
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createObjectKeyLogStructuredFileStorepublic static <K> IBmPersistentObjectKeyStore<K> createObjectKeyLogStructuredFileStore(IBmSerializer<K> keySerializer, Path path, int fileSizeCompactionThreshold, int wastePercentageCompactionThreshold) Creates a log-structured file store with particular object type keys.- Type Parameters:
- K- The store key type.
- Parameters:
- keySerializer- The key serializer. May not be- null.
- path- The path of the file to store data. May not be- null.
- fileSizeCompactionThreshold- The file size in bytes that when exceeded may trigger data compaction. Must be greater than- 0.
- wastePercentageCompactionThreshold- The waste percentage that when exceeded may trigger data compaction. Must be greater than- 0.
- Returns:
- the created store, never null.
 
 - 
createStringRegistrypublic static IBmPersistentStringRegistry createStringRegistry(Path path) throws IOException Creates a persistent string registry.- Parameters:
- path- The path of the file to store data. May not be- null.
- Returns:
- the created registry, never null.
- Throws:
- IOException- if any I/O error occurs.
 
 - 
createStringRegistrypublic static IBmPersistentStringRegistry createStringRegistry(Path path, int maxAllowedId) throws IOException Creates a persistent string registry.- Parameters:
- path- The path of the file to store data. May not be- null.
- maxAllowedId- The maximum allowed ID. Must be greater than- 0.
- Returns:
- the created registry, never null.
- Throws:
- IOException- if any I/O error occurs.
 
 - 
createWorkLog@Deprecated public static IBmWorkLog createWorkLog(Path path, long sizeThreshold) throws IOException Deprecated.UsecreateWal(Path).Creates a work log.- Parameters:
- path- The path of the file to store data. May not be- null.
- sizeThreshold- The size threshold. Must be greater than- 0.
- Returns:
- the created work log, never null.
- Throws:
- IOException- if any I/O error occurs.
 
 - 
createWalpublic static IBmWal createWal(Path path) throws IOException Creates a write-ahead log.- Parameters:
- path- The path of the file to store data. May not be- null.
- Returns:
- the created write-ahead log, never null.
- Throws:
- IOException- if any I/O error occurs.
 
 
- 
 
-