public class FileDescriptor extends Object implements Comparable<FileDescriptor>, AbstractWalRecordsIterator.AbstractFileDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected File |
file
File represented by this class.
|
protected long |
idx
Absolute WAL segment file index.
|
| Constructor and Description |
|---|
FileDescriptor(@NotNull File file)
Creates file descriptor.
|
FileDescriptor(@NotNull File file,
@Nullable Long idx) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull FileDescriptor o) |
boolean |
equals(Object o) |
File |
file() |
static String |
fileName(long segment) |
String |
getAbsolutePath() |
long |
getIdx() |
int |
hashCode() |
long |
idx() |
boolean |
isCompressed() |
SegmentIO |
toIO(FileIOFactory fileIOFactory)
Make fileIo by this description.
|
protected final File file
protected final long idx
public FileDescriptor(@NotNull
@NotNull File file)
file - WAL segment file.public static String fileName(long segment)
segment - Segment index.public int compareTo(@NotNull
@NotNull FileDescriptor o)
compareTo in interface Comparable<FileDescriptor>public long getIdx()
public String getAbsolutePath()
public boolean isCompressed()
isCompressed in interface AbstractWalRecordsIterator.AbstractFileDescriptorpublic File file()
file in interface AbstractWalRecordsIterator.AbstractFileDescriptorpublic long idx()
idx in interface AbstractWalRecordsIterator.AbstractFileDescriptorpublic SegmentIO toIO(FileIOFactory fileIOFactory) throws IOException
toIO in interface AbstractWalRecordsIterator.AbstractFileDescriptorfileIOFactory - Factory for fileIo creation.FileIO.IOException - if creation of fileIo was not success.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020