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(File file)
Creates file descriptor.
|
FileDescriptor(File file,
@Nullable Long idx)
Creates file descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FileDescriptor o) |
boolean |
equals(Object o) |
File |
file() |
static String |
fileName(long idx)
Getting segment file name.
|
String |
getAbsolutePath()
Return absolute pathname string of this file descriptor pathname.
|
long |
getIdx()
Return absolute WAL segment file index.
|
int |
hashCode() |
long |
idx() |
boolean |
isCompressed() |
SegmentIO |
toReadOnlyIO(FileIOFactory fileIOFactory)
Make fileIo by this description.
|
String |
toString() |
protected final File file
protected final long idx
public FileDescriptor(File file)
file - WAL segment file.public static String fileName(long idx)
idx - Segment index.public int compareTo(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 toReadOnlyIO(FileIOFactory fileIOFactory) throws IOException
toReadOnlyIO 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.15.0 Release Date : April 25 2023