public class FileDataReader extends java.lang.Object implements DataReader
| Constructor and Description |
|---|
FileDataReader(@NotNull java.io.File dir,
int openFiles) |
FileDataReader(@NotNull java.io.File dir,
int openFiles,
boolean useNio,
long freePhysicalMemoryThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
jetbrains.exodus.io.FileDataReader.FileBlock |
getBlock(long address) |
Block[] |
getBlocks() |
java.lang.String |
getLocation() |
void |
removeBlock(long blockAddress,
@NotNull RemoveBlockType rbt) |
void |
setLog(@NotNull Log log) |
static void |
sortBlocks(Block[] result) |
void |
truncateBlock(long blockAddress,
long length) |
public FileDataReader(@NotNull
@NotNull java.io.File dir,
int openFiles)
public FileDataReader(@NotNull
@NotNull java.io.File dir,
int openFiles,
boolean useNio,
long freePhysicalMemoryThreshold)
public Block[] getBlocks()
getBlocks in interface DataReaderpublic void removeBlock(long blockAddress,
@NotNull
@NotNull RemoveBlockType rbt)
removeBlock in interface DataReaderpublic void truncateBlock(long blockAddress,
long length)
truncateBlock in interface DataReaderpublic void clear()
clear in interface DataReaderpublic void close()
close in interface DataReaderpublic void setLog(@NotNull
@NotNull Log log)
setLog in interface DataReaderpublic java.lang.String getLocation()
getLocation in interface DataReaderpublic jetbrains.exodus.io.FileDataReader.FileBlock getBlock(long address)
getBlock in interface DataReaderpublic static void sortBlocks(Block[] result)