public class IgniteIndexReaderFilePageStoreFactoryImpl extends Object implements IgniteIndexReaderFilePageStoreFactory
FilePageStore for case of regular pds.| Constructor and Description |
|---|
IgniteIndexReaderFilePageStoreFactoryImpl(File dir,
int pageSize,
int partCnt,
int filePageStoreVer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable FilePageStore |
createFilePageStore(int partId,
byte type,
Collection<Throwable> errors)
Creating new
FilePageStore. |
ByteBuffer |
headerBuffer(byte type)
Create buffer with header.
|
int |
pageSize()
Return page size.
|
int |
partitionCount()
Return partition count.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFilePageStoreWithEnsure, getFilepublic IgniteIndexReaderFilePageStoreFactoryImpl(File dir, int pageSize, int partCnt, int filePageStoreVer)
dir - Directory with data(partitions and index).pageSize - Page size.partCnt - Partition count.filePageStoreVer - Page store version.@Nullable public @Nullable FilePageStore createFilePageStore(int partId, byte type, Collection<Throwable> errors) throws IgniteCheckedException
FilePageStore. It can return null if partition file were not found,
for example: node should not contain it by affinity.createFilePageStore in interface IgniteIndexReaderFilePageStoreFactorypartId - Partition ID.type - Data type, can be PageIdAllocator.FLAG_IDX or PageIdAllocator.FLAG_DATA.errors - Errors while reading partition.FilePageStore or null.IgniteCheckedException - If there are errors when creating FilePageStore.public ByteBuffer headerBuffer(byte type) throws IgniteCheckedException
headerBuffer in interface IgniteIndexReaderFilePageStoreFactorytype - Data type, can be PageIdAllocator.FLAG_IDX or PageIdAllocator.FLAG_DATA.IgniteCheckedExceptionpublic int pageSize()
pageSize in interface IgniteIndexReaderFilePageStoreFactorypublic int partitionCount()
partitionCount in interface IgniteIndexReaderFilePageStoreFactory
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022