public interface IgniteIndexReaderFilePageStoreFactory
FilePageStore for analyzing partition and index files.| Modifier and Type | Method and Description |
|---|---|
@Nullable FilePageStore |
createFilePageStore(int partId,
byte type,
Collection<Throwable> errors)
Creating new
FilePageStore. |
default @Nullable FilePageStore |
createFilePageStoreWithEnsure(int partId,
byte type,
Collection<Throwable> errors)
Creating new
FilePageStore and initializing it. |
default File |
getFile(File dir,
int partId,
@Nullable String fileExt)
Getting a partition or index file that may not exist.
|
default ByteBuffer |
headerBuffer(byte type)
Create buffer with header.
|
int |
pageSize()
Return page size.
|
int |
partitionCount()
Return partition count.
|
@Nullable @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.partId - 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.@Nullable default @Nullable FilePageStore createFilePageStoreWithEnsure(int partId, byte type, Collection<Throwable> errors) throws IgniteCheckedException
FilePageStore and initializing it.
It can return null if partition file were not found, for example: node should not contain it by affinity.partId - 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 or initializing FilePageStore.default ByteBuffer headerBuffer(byte type) throws IgniteCheckedException
type - Data type, can be PageIdAllocator.FLAG_IDX or PageIdAllocator.FLAG_DATA.IgniteCheckedExceptiondefault File getFile(File dir, int partId, @Nullable @Nullable String fileExt)
dir - Directory to get partition or index file.partId - ID of partition or index.fileExt - File extension if it differs from FilePageStoreManager.FILE_SUFFIX.int pageSize()
int partitionCount()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022