![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.file.RandomAccess:

Definition at line 50 of file RandomAccess.java.
Public Member Functions | |
| abstract long | size () |
| Return the size of the managed region. | |
| abstract void | resize (long newSize) throws IOException |
| Resize the managed region. | |
| abstract void | write (long pos, byte[] buf, int offset, int len) throws IOException |
| abstract void | read (long pos, byte[] buf, int offset, int len) throws IOException |
Read len bytes from location pos of the region into the buffer buf, starting at offset. | |
| abstract void | close () throws IOException |
| Finalization... | |
| abstract void | flush () throws IOException |
| void | writeByte (int pos, int val) throws IOException |
| int | readByte (int pos) throws IOException |
| void | writeInt (long pos, int val) throws IOException |
| Write a integer value to the specified position in the buffer. | |
| int | readInt (long pos) throws IOException |
| Write a integer value to the specified position in the buffer. | |
| void | writeLong (long pos, long val) throws IOException |
| Write a long value to the specified position in the buffer. | |
| long | readLong (long pos) throws IOException |
| Write a long value to the specified position in the buffer. | |
Package Attributes | |
| byte[] | fmtBuf = new byte[8] |
|
|
|
||||||||||||||||||||
|
Read
Implemented in com.quadcap.sql.file.BlockAccess, com.quadcap.sql.file.BufferedRandomAccess, com.quadcap.sql.file.ByteArrayRandomAccess, and com.quadcap.sql.file.FileRandomAccess. Referenced by com.quadcap.sql.file.BufferedRandomAccess.getBuffer(), com.quadcap.sql.types.ValueBlob.getBytes(), com.quadcap.sql.types.ValueClob.getChars(), com.quadcap.sql.file.RandomAccessInputStream.read(), and com.quadcap.sql.file.LogBuffer.read(). |
|
|
Reimplemented in com.quadcap.sql.file.ByteArrayRandomAccess. Definition at line 90 of file RandomAccess.java. References com.quadcap.sql.file.RandomAccess.fmtBuf, and com.quadcap.sql.file.RandomAccess.readByte(). Referenced by com.quadcap.sql.file.RandomAccess.readByte(), and com.quadcap.sql.file.LogBuffer.readByte(). |
|
|
Write a integer value to the specified position in the buffer.
Definition at line 110 of file RandomAccess.java. References com.quadcap.sql.file.RandomAccess.fmtBuf, and com.quadcap.sql.file.RandomAccess.readInt(). Referenced by com.quadcap.sql.file.LogBuffer.init(), and com.quadcap.sql.file.RandomAccess.readInt(). |
|
|
Write a long value to the specified position in the buffer.
Definition at line 130 of file RandomAccess.java. References com.quadcap.sql.file.RandomAccess.fmtBuf, and com.quadcap.sql.file.RandomAccess.readLong(). Referenced by com.quadcap.sql.file.RandomAccess.readLong(). |
|
|
|
||||||||||||||||||||
|
||||||||||||
|
Reimplemented in com.quadcap.sql.file.ByteArrayRandomAccess. Definition at line 83 of file RandomAccess.java. References com.quadcap.sql.file.RandomAccess.fmtBuf. Referenced by com.quadcap.sql.file.LogBuffer.writeByte(). |
|
||||||||||||
|
Write a integer value to the specified position in the buffer.
Definition at line 100 of file RandomAccess.java. References com.quadcap.sql.file.RandomAccess.fmtBuf, and com.quadcap.sql.file.RandomAccess.writeInt(). Referenced by com.quadcap.sql.file.LogBuffer.sync(), and com.quadcap.sql.file.RandomAccess.writeInt(). |
|
||||||||||||
|
Write a long value to the specified position in the buffer.
Definition at line 120 of file RandomAccess.java. References com.quadcap.sql.file.RandomAccess.fmtBuf, and com.quadcap.sql.file.RandomAccess.writeLong(). Referenced by com.quadcap.sql.file.RandomAccess.writeLong(). |
|