public class FileVersionCheckingFactory extends Object
| 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,
IntSupplier pageSize) |
| Modifier and Type | Method and Description |
|---|---|
PageStore |
createPageStore(byte type,
File file,
LongConsumer allocatedTracker)
Creates instance of PageStore based on given file.
|
PageStore |
createPageStore(byte type,
IgniteOutClosure<Path> pathProvider,
LongConsumer allocatedTracker)
Creates instance of PageStore based on file path provider.
|
int |
headerSize(int ver) |
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, IntSupplier pageSize)
fileIOFactory - File IO factory.fileIOFactoryStoreV1 - File IO factory for V1 page store and for version checking.pageSize - Page size supplier.public PageStore createPageStore(byte type, File file, LongConsumer allocatedTracker) throws IgniteCheckedException
type - Data type, can be PageStore.TYPE_IDX or PageStore.TYPE_DATA.file - File Page store file.allocatedTracker - metrics updater.IgniteCheckedException - if failed.public PageStore createPageStore(byte type, IgniteOutClosure<Path> pathProvider, LongConsumer allocatedTracker) throws IgniteCheckedException
type - Data type, can be PageStore.TYPE_IDX or PageStore.TYPE_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.11.0 Release Date : September 11 2021