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,
LongConsumer 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, write
public static final int VERSION
public FilePageStoreV2(byte type, IgniteOutClosure<Path> pathProvider, FileIOFactory factory, DataStorageConfiguration cfg, LongConsumer allocatedTracker)
type
- Type.pathProvider
- file path provider.factory
- Factory.cfg
- Config.allocatedTracker
- Allocated tracker.public int headerSize()
headerSize
in class FilePageStore
public int version()
version
in interface PageStore
version
in class FilePageStore
public int getBlockSize()
getBlockSize
in interface PageStore
getBlockSize
in class FilePageStore
public long getSparseSize()
getSparseSize
in interface PageStore
getSparseSize
in class FilePageStore
PageStore.size()
.PageStore.punchHole(long, int)
public void punchHole(long pageId, int usefulBytes)
punchHole
in interface PageStore
punchHole
in class FilePageStore
pageId
- Page id.usefulBytes
- Number of meaningful bytes from the beginning of the page.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021