public class IgniteWalIteratorFactory extends Object
| Constructor and Description |
|---|
IgniteWalIteratorFactory(IgniteLogger log,
FileIOFactory ioFactory,
int pageSize)
Creates WAL files iterator factory.
|
IgniteWalIteratorFactory(IgniteLogger log,
int pageSize)
Creates WAL files iterator factory.
|
IgniteWalIteratorFactory(IgniteLogger log,
int pageSize,
File binaryMetadataFileStoreDir,
File marshallerMappingFileStoreDir)
Creates WAL files iterator factory.
|
IgniteWalIteratorFactory(IgniteLogger log,
int pageSize,
File binaryMetadataFileStoreDir,
File marshallerMappingFileStoreDir,
boolean keepBinary)
Creates WAL files iterator factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bufferSize(int bufSize) |
void |
ioFactory(FileIOFactory ioFactory) |
WALIterator |
iteratorArchiveDirectory(File walDirWithConsistentId)
Creates iterator for (archive) directory scan mode.
|
WALIterator |
iteratorArchiveFiles(File... files)
Creates iterator for file by file scan mode.
|
WALIterator |
iteratorWorkFiles(File... files)
Creates iterator for file by file scan mode.
|
public IgniteWalIteratorFactory(@NotNull
IgniteLogger log,
int pageSize,
@Nullable
File binaryMetadataFileStoreDir,
@Nullable
File marshallerMappingFileStoreDir,
boolean keepBinary)
log - Logger.pageSize - Page size which was used in Ignite Persistent Data store to read WAL from, size is validated
according its boundaries.binaryMetadataFileStoreDir - folder specifying location of metadata File Store. Should include "binary_meta"
subfolder and consistent ID subfolder. Note Consistent ID should be already masked and should not contain special
symbols. Providing null means no specific folder is configured. marshallerMappingFileStoreDir - Folder specifying location of marshaller mapping file store. Should include
"marshaller" subfolder. Providing null will disable unmarshall for non primitive objects, BinaryObjects
will be providedkeepBinary - true disables complex object unmarshall into source classespublic IgniteWalIteratorFactory(@NotNull
IgniteLogger log,
int pageSize,
@Nullable
File binaryMetadataFileStoreDir,
@Nullable
File marshallerMappingFileStoreDir)
log - Logger.pageSize - Page size which was used in Ignite Persistent Data store to read WAL from, size is validated
according its boundaries.binaryMetadataFileStoreDir - folder specifying location of metadata File Store. Should include "binary_meta"
subfolder and consistent ID subfolder. Note Consistent ID should be already masked and should not contain special
symbols. Providing null means no specific folder is configured. marshallerMappingFileStoreDir - Folder specifying location of marshaller mapping file store. Should include
"marshaller" subfolder. Providing null will disable unmarshall for non primitive objects, BinaryObjects
will be providedpublic IgniteWalIteratorFactory(@NotNull
IgniteLogger log,
@NotNull
FileIOFactory ioFactory,
int pageSize)
log - Logger.ioFactory - Custom factory for non-standard file API to be used in WAL reading.pageSize - Page size which was used in Ignite Persistent Data store to read WAL from, size is validated
according its boundaries.public IgniteWalIteratorFactory(@NotNull
IgniteLogger log,
int pageSize)
log - Logger.pageSize - Page size which was used in Ignite Persistent Data store to read WAL from, size is validated
according its boundaries.public WALIterator iteratorArchiveDirectory(@NotNull File walDirWithConsistentId) throws IgniteCheckedException
walDirWithConsistentId - directory with WAL files. Should already contain node consistent ID as subfolder.
Note: 'Consistent ID'-based subfolder name (if any) should not contain special symbols.IgniteCheckedException - if failed to read folderpublic WALIterator iteratorArchiveFiles(@NotNull File... files) throws IgniteCheckedException
files - files to scan. Order is not important, but it is significant to provide all segments without omissions.
Parameter should contain direct file links to '.wal' files from archive directory.
'Consistent ID'-based subfolder name (if any) should not contain special symbols.
Special symbols should be already masked.IgniteCheckedException - if failed to read filespublic WALIterator iteratorWorkFiles(@NotNull File... files) throws IgniteCheckedException
files - files to scan. Order is not important, but it is significant to provide all segments without omissions.
Parameter should contain direct file links to '.wal' files from work directory.
'Consistent ID'-based subfolder name (if any) should not contain special symbols.
Special symbols should be already masked.IgniteCheckedException - if failed to read filespublic void ioFactory(FileIOFactory ioFactory)
ioFactory - New factory to provide I/O interfaces for read/write operations with filespublic void bufferSize(int bufSize)
bufSize - New wal records iterator buffer size
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018