public interface OFile extends OClosableItem
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_SIZE |
Modifier and Type | Method and Description |
---|---|
long |
allocateSpace(int size) |
void |
close() |
void |
create() |
void |
delete() |
boolean |
exists() |
long |
getFileSize() |
String |
getName() |
boolean |
isOpen() |
void |
open() |
void |
read(long offset,
ByteBuffer buffer,
boolean throwOnEof) |
void |
renameTo(Path newFile) |
void |
replaceContentWith(Path newContentFile) |
void |
shrink(long size) |
void |
synch() |
String |
toString() |
IOResult |
write(List<ORawPair<Long,ByteBuffer>> buffers) |
void |
write(long offset,
ByteBuffer buffer) |
static final int HEADER_SIZE
long allocateSpace(int size) throws IOException
IOException
void shrink(long size) throws IOException
IOException
long getFileSize()
void read(long offset, ByteBuffer buffer, boolean throwOnEof) throws IOException
IOException
void write(long offset, ByteBuffer buffer) throws IOException
IOException
IOResult write(List<ORawPair<Long,ByteBuffer>> buffers) throws IOException
IOException
void synch()
void create() throws IOException
IOException
void open()
open
in interface OClosableItem
void close()
close
in interface OClosableItem
void delete() throws IOException, InterruptedException
IOException
InterruptedException
boolean isOpen()
isOpen
in interface OClosableItem
boolean exists()
String getName()
void renameTo(Path newFile) throws IOException, InterruptedException
IOException
InterruptedException
void replaceContentWith(Path newContentFile) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2009–2020 OrientDB. All rights reserved.