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,
MemoryConfiguration memCfg) |
| Modifier and Type | Method and Description |
|---|---|
FilePageStore |
createPageStore(byte type,
File file)
Creates instance of FilePageStore based on given file.
|
FilePageStore |
createPageStore(byte type,
File file,
int ver)
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, MemoryConfiguration memCfg)
fileIOFactory - File io factory.memCfg - Memory configuration.public FilePageStore createPageStore(byte type, File file) 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) throws IgniteCheckedException
type - Type.file - File.ver - Version.IgniteCheckedException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017