public class IgniteWalIteratorFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IgniteWalIteratorFactory.IteratorParametersBuilder
Wal iterator parameter builder.
|
| Constructor and Description |
|---|
IgniteWalIteratorFactory()
Creates WAL files iterator factory.
|
IgniteWalIteratorFactory(@NotNull IgniteLogger log)
Creates WAL files iterator factory.
|
| Modifier and Type | Method and Description |
|---|---|
List<T2<Long,Long>> |
hasGaps(File... filesOrDirs)
Find WAL gaps, for example:
0 1 2 3 4 7 8 10 - WAL segment files in directory, this method will return
List with two tuples [(4,7),(8,10)].
|
List<T2<Long,Long>> |
hasGaps(@NotNull IgniteWalIteratorFactory.IteratorParametersBuilder iteratorParametersBuilder) |
List<T2<Long,Long>> |
hasGaps(@NotNull List<FileDescriptor> descriptors) |
List<T2<Long,Long>> |
hasGaps(String... filesOrDirs)
Find WAL gaps, for example:
0 1 2 3 4 7 8 10 - WAL segment files in directory, this method will return
List with two tuples [(4,7),(8,10)].
|
WALIterator |
iterator(File... filesOrDirs)
Creates iterator for file by file scan mode.
|
WALIterator |
iterator(@NotNull IgniteWalIteratorFactory.IteratorParametersBuilder iteratorParametersBuilder) |
WALIterator |
iterator(String... filesOrDirs)
Creates iterator for file by file scan mode.
|
WALIterator |
iterator(@NotNull WALPointer replayFrom,
File... filesOrDirs)
Creates iterator for file by file scan mode.
|
WALIterator |
iterator(@NotNull WALPointer replayFrom,
String... filesOrDirs)
Creates iterator for file by file scan mode.
|
List<FileDescriptor> |
resolveWalFiles(IgniteWalIteratorFactory.IteratorParametersBuilder iteratorParametersBuilder)
This methods checks all provided files to be correct WAL segment.
|
public IgniteWalIteratorFactory()
public IgniteWalIteratorFactory(@NotNull
@NotNull IgniteLogger log)
log - Logger.public WALIterator iterator(@NotNull File... filesOrDirs) throws IgniteCheckedException, IllegalArgumentException
filesOrDirs - files to scan. A file can be the path to '.wal' file, or directory with '.wal' files.
Order is not important, but it is significant to provide all segments without omissions.
Path should not contain special symbols. Special symbols should be already masked.IgniteCheckedException - if failed to read filesIllegalArgumentException - If parameter validation failed.public WALIterator iterator(@NotNull @NotNull WALPointer replayFrom, @NotNull File... filesOrDirs) throws IgniteCheckedException, IllegalArgumentException
replayFrom - File WAL pointer for start replay.filesOrDirs - files to scan. A file can be the path to '.wal' file, or directory with '.wal' files.
Order is not important, but it is significant to provide all segments without omissions.
Path should not contain special symbols. Special symbols should be already masked.IgniteCheckedException - if failed to read filesIllegalArgumentException - If parameter validation failed.public WALIterator iterator(@NotNull String... filesOrDirs) throws IgniteCheckedException, IllegalArgumentException
filesOrDirs - paths to scan. A path can be direct to '.wal' file, or directory with '.wal' files.
Order is not important, but it is significant to provide all segments without omissions.
Path should not contain special symbols. Special symbols should be already masked.IgniteCheckedException - If failed to read files.IllegalArgumentException - If parameter validation failed.public WALIterator iterator(@NotNull @NotNull WALPointer replayFrom, @NotNull String... filesOrDirs) throws IgniteCheckedException, IllegalArgumentException
replayFrom - File WAL pointer for start replay.filesOrDirs - paths to scan. A path can be direct to '.wal' file, or directory with '.wal' files.
Order is not important, but it is significant to provide all segments without omissions.
Path should not contain special symbols. Special symbols should be already masked.IgniteCheckedException - If failed to read files.IllegalArgumentException - If parameter validation failed.public WALIterator iterator(@NotNull @NotNull IgniteWalIteratorFactory.IteratorParametersBuilder iteratorParametersBuilder) throws IgniteCheckedException, IllegalArgumentException
iteratorParametersBuilder - Iterator parameters builder.IgniteCheckedExceptionIllegalArgumentExceptionpublic List<T2<Long,Long>> hasGaps(@NotNull String... filesOrDirs) throws IllegalArgumentException
filesOrDirs - Paths to files or directories for scan.IllegalArgumentExceptionpublic List<T2<Long,Long>> hasGaps(@NotNull File... filesOrDirs) throws IllegalArgumentException
filesOrDirs - Files or directories to scan.IllegalArgumentExceptionpublic List<T2<Long,Long>> hasGaps(@NotNull @NotNull IgniteWalIteratorFactory.IteratorParametersBuilder iteratorParametersBuilder) throws IllegalArgumentException
iteratorParametersBuilder - Iterator parameters builder.IllegalArgumentExceptionpublic List<T2<Long,Long>> hasGaps(@NotNull @NotNull List<FileDescriptor> descriptors) throws IllegalArgumentException
descriptors - File descriptors.IllegalArgumentExceptionpublic List<FileDescriptor> resolveWalFiles(IgniteWalIteratorFactory.IteratorParametersBuilder iteratorParametersBuilder)
iteratorParametersBuilder - IteratorParametersBuilder.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021