
public class OWALSegmentCache extends Object
The last written pages will be cached so later they can be flushed by single batch. File will be closed if there will be no access to this cache during last N min.
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean flush)
Writes cache content to the file and closes it.
|
void |
delete()
Clears cache and deletes underlying file
|
long |
filledUpTo() |
void |
open()
Initializes cache and opens underlying file.
|
void |
sync()
Writes cache content to the file and performs
fsync |
public void sync()
throws IOException
fsyncIOExceptionpublic void close(boolean flush)
fsync if needed.public void delete()
throws IOException
IOExceptionpublic void open()
throws IOException
IOExceptionpublic long filledUpTo()
throws IOException
IOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.