public class Page
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
PAGE_SIZE |
Constructor and Description |
---|
Page(RandomAccessDataFile owner,
long offset) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
boolean |
flushIfFinalizationIdIsEqualTo(long finalizationId) |
int |
get(long index,
byte[] bytes,
int off,
int length) |
java.nio.ByteBuffer |
getBuf() |
com.intellij.util.io.PoolPageKey |
getKey() |
long |
getOffset() |
RandomAccessDataFile |
getOwner() |
com.intellij.util.io.FinalizationRequest |
prepareForFinalization(int finalizationId) |
int |
put(long index,
byte[] bytes,
int off,
int length) |
boolean |
recycleIfFinalizationIdIsEqualTo(long finalizationId) |
java.lang.String |
toString() |
public Page(RandomAccessDataFile owner, long offset)
public void flush()
public java.nio.ByteBuffer getBuf()
public long getOffset()
public int put(long index, byte[] bytes, int off, int length)
public int get(long index, byte[] bytes, int off, int length)
public com.intellij.util.io.FinalizationRequest prepareForFinalization(int finalizationId)
public RandomAccessDataFile getOwner()
public com.intellij.util.io.PoolPageKey getKey()
public boolean flushIfFinalizationIdIsEqualTo(long finalizationId)
public boolean recycleIfFinalizationIdIsEqualTo(long finalizationId)
public java.lang.String toString()
toString
in class java.lang.Object