public class FileVersionCheckingFactory extends Object implements FilePageStoreFactory
| Modifier and Type | Field and Description |
|---|---|
static int |
LATEST_VERSION
Latest page store version.
|
static String |
LATEST_VERSION_OVERRIDE_PROPERTY
Property to override latest version.
|
| Constructor and Description |
|---|
FileVersionCheckingFactory(FileIOFactory fileIOFactory,
FileIOFactory fileIOFactoryStoreV1,
DataStorageConfiguration memCfg) |
| Modifier and Type | Method and Description |
|---|---|
PageStore |
createPageStore(byte type,
IgniteOutClosure<Path> pathProvider,
LongAdderMetric allocatedTracker)
Creates instance of PageStore based on file path provider.
|
int |
headerSize(int ver) |
int |
latestVersion()
Resolves latest page store version.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatePageStorepublic static final String LATEST_VERSION_OVERRIDE_PROPERTY
public static final int LATEST_VERSION
public FileVersionCheckingFactory(FileIOFactory fileIOFactory, FileIOFactory fileIOFactoryStoreV1, DataStorageConfiguration memCfg)
fileIOFactory - File IO factory.fileIOFactoryStoreV1 - File IO factory for V1 page store and for version checking.memCfg - Memory configuration.public PageStore createPageStore(byte type, IgniteOutClosure<Path> pathProvider, LongAdderMetric allocatedTracker) throws IgniteCheckedException
createPageStore in interface FilePageStoreFactorytype - Data type, can be PageIdAllocator.FLAG_IDX or PageIdAllocator.FLAG_DATApathProvider - File Page store path provider.allocatedTracker - metrics updaterIgniteCheckedException - if failedpublic int latestVersion()
public int headerSize(int ver)
ver - Version.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020