|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.block.BlockReadWrite
public class BlockReadWrite
Filesystem access for the BlockStore.
| Constructor Summary | |
|---|---|
BlockReadWrite(BlockStore store,
Path path,
boolean isEnableMmap)
Creates a new store. |
|
| Method Summary | |
|---|---|
long |
getFileSize()
Returns the file size. |
void |
readBlock(long blockId,
byte[] buffer,
int offset,
int length)
Reads a block into the buffer. |
void |
remove()
|
java.lang.String |
toString()
|
void |
writeBlock(long blockAddress,
byte[] buffer,
int offset,
int length,
boolean isPriority)
Saves the buffer to the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlockReadWrite(BlockStore store,
Path path,
boolean isEnableMmap)
database - the owning database.name - the store namelock - the table lockpath - the path to the files| Method Detail |
|---|
public long getFileSize()
public void remove()
throws java.sql.SQLException
java.sql.SQLException
public void readBlock(long blockId,
byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOException
public void writeBlock(long blockAddress,
byte[] buffer,
int offset,
int length,
boolean isPriority)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||