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,
DataStorageConfiguration memCfg) |
FileVersionCheckingFactory(FileIOFactory fileIOFactory,
FileIOFactory fileIOFactoryStoreV1,
DataStorageConfiguration memCfg) |
| Modifier and Type | Method and Description |
|---|---|
FilePageStore |
createPageStore(byte type,
File file,
AllocatedPageTracker allocatedTracker)
Creates instance of FilePageStore based on given file.
|
FilePageStore |
createPageStore(byte type,
File file,
int ver,
AllocatedPageTracker allocatedTracker)
Instantiates specific version of FilePageStore.
|
int |
latestVersion()
Resolves latest page store version.
|
public 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 FileVersionCheckingFactory(FileIOFactory fileIOFactory, DataStorageConfiguration memCfg)
fileIOFactory - File IO factory for V1 & V2 page store and for version checking.memCfg - Memory configuration.public FilePageStore createPageStore(byte type, File file, AllocatedPageTracker allocatedTracker) throws IgniteCheckedException
createPageStore in interface FilePageStoreFactorytype - Data type, can be PageIdAllocator.FLAG_IDX or PageIdAllocator.FLAG_DATA.file - File Page store file.IgniteCheckedExceptionpublic int latestVersion()
public FilePageStore createPageStore(byte type, File file, int ver, AllocatedPageTracker allocatedTracker)
type - Type.file - File.ver - Version.allocatedTracker - Metrics updater
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018