public class FileMappedPage extends Object implements Page
| Constructor and Description |
|---|
FileMappedPage(PageManager pageManager,
int index,
MappedByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearBytes(int startIndex) |
int |
compareTo(Page page) |
void |
flush() |
byte[] |
getContent() |
int |
getIndex() |
int |
getOffset() |
PageManager |
getPageManager() |
int |
getSize() |
byte |
readByte() |
byte[] |
readBytes(byte[] bytes,
int offset,
int count) |
byte[] |
readBytes(int size) |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
void |
setContent(Page page) |
void |
setOffset(int offset) |
void |
writeByte(byte b) |
void |
writeBytes(byte[] bytes) |
void |
writeBytes(byte[] bytes,
int offset,
int count) |
void |
writeDouble(double d) |
void |
writeFloat(float f) |
void |
writeInt(int i) |
void |
writeLong(long l) |
void |
writeShort(short s) |
public FileMappedPage(PageManager pageManager, int index, MappedByteBuffer buffer)
public void clearBytes(int startIndex)
clearBytes in interface Pagepublic int compareTo(Page page)
compareTo in interface Comparable<Page>public byte[] getContent()
getContent in interface Pagepublic PageManager getPageManager()
getPageManager in interface Pagepublic byte[] readBytes(byte[] bytes,
int offset,
int count)
public double readDouble()
readDouble in interface Pagepublic void setContent(Page page)
setContent in interface Pagepublic void writeBytes(byte[] bytes)
writeBytes in interface Pagepublic void writeBytes(byte[] bytes,
int offset,
int count)
writeBytes in interface Pagepublic void writeDouble(double d)
writeDouble in interface Pagepublic void writeFloat(float f)
writeFloat in interface Pagepublic void writeShort(short s)
writeShort in interface PageCopyright © 2015 Revolution Systems Inc.. All rights reserved.