public class FilePageStoreV2 extends FilePageStore
| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION
File version.
|
dbCfg, fileIO, HEADER_SIZE, pageSize| Constructor and Description |
|---|
FilePageStoreV2(byte type,
IgniteOutClosure<Path> pathProvider,
FileIOFactory factory,
DataStorageConfiguration cfg,
LongAdderMetric allocatedTracker)
Constructor which initializes file path provider closure, allowing to calculate file path in any time.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockSize() |
long |
getSparseSize() |
int |
headerSize()
Size of page store header.
|
void |
punchHole(long pageId,
int usefulBytes)
Should free all the extra storage space after the given number of useful bytes in the given page.
|
int |
version()
Page store version.
|
addWriteListener, allocatePage, beginRecover, close, ensure, exists, finishRecover, getFileAbsolutePath, getPageSize, header, init, pageOffset, pages, read, readHeader, removeWriteListener, size, stop, sync, truncate, writepublic static final int VERSION
public FilePageStoreV2(byte type,
IgniteOutClosure<Path> pathProvider,
FileIOFactory factory,
DataStorageConfiguration cfg,
LongAdderMetric allocatedTracker)
type - Type.pathProvider - file path provider.factory - Factory.cfg - Config.allocatedTracker - Allocated tracker.public int headerSize()
headerSize in class FilePageStorepublic int version()
version in interface PageStoreversion in class FilePageStorepublic int getBlockSize()
getBlockSize in interface PageStoregetBlockSize in class FilePageStorepublic long getSparseSize()
getSparseSize in interface PageStoregetSparseSize in class FilePageStorePageStore.size().PageStore.punchHole(long, int)public void punchHole(long pageId,
int usefulBytes)
punchHole in interface PageStorepunchHole in class FilePageStorepageId - Page id.usefulBytes - Number of meaningful bytes from the beginning of the page.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020