public interface Page
| Modifier and Type | Method and Description |
|---|---|
int |
swapIn(StoreChannel channel,
long offset,
int length)
Swap a file-page into memory.
|
void |
swapOut(StoreChannel channel,
long offset,
int length)
Swap the page out to storage.
|
int swapIn(StoreChannel channel, long offset, int length) throws IOException
IOException - If the file could not be read from.
For instance, if the file has been closed, moved or deleted,
or if the requested range of data goes beyond the length of the file.
The possible causes of an IOException is platform dependent.
If the channel has been closed, then it must be
reopened and the swapIn operation must be retried.void swapOut(StoreChannel channel, long offset, int length) throws IOException
IOException - If the file could not be written to.
For instance, if the storage device is out of space,
or the file has been moved or deleted.
The possible causes of an IOException is platform dependent.
If the channel has been closed, then it must be
reopened and the swapIn operation must be retried.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.