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

RandomAccess implementation using a byte array.
Definition at line 50 of file BufferedRandomAccess.java.
Public Member Functions | |
| BufferedRandomAccess (RandomAccess ra) | |
| long | size () |
| Return the size of the managed region. | |
| void | resize (long newSize) throws IOException |
| Resize the managed region. | |
| void | write (long pos, byte[] buf, int offset, int len) throws IOException |
| 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. | |
| void | close () throws IOException |
| Finalization... | |
| void | flush () throws IOException |
Package Functions | |
| final void | getBuffer (long addr) throws IOException |
| final void | flushBuffers () throws IOException |
| final void | flush (Buffer b) throws IOException |
Package Attributes | |
| Buffer | b1 = new Buffer() |
| Buffer | b2 = new Buffer() |
| Buffer | b = null |
| RandomAccess | ra |
| long | size |
Static Package Attributes | |
| final int | BUFSIZE = 16384 |
|
|
Definition at line 71 of file BufferedRandomAccess.java. References com.quadcap.sql.file.RandomAccess.size(), and com.quadcap.sql.file.BufferedRandomAccess.size. |
|
|
Finalization...
Implements com.quadcap.sql.file.RandomAccess. Definition at line 161 of file BufferedRandomAccess.java. References com.quadcap.sql.file.RandomAccess.close(), com.quadcap.sql.file.BufferedRandomAccess.flush(), and com.quadcap.sql.file.BufferedRandomAccess.ra. |
|
|
|
|
Definition at line 166 of file BufferedRandomAccess.java. References com.quadcap.sql.file.BufferedRandomAccess.b1, com.quadcap.sql.file.BufferedRandomAccess.b2, and com.quadcap.sql.file.BufferedRandomAccess.flush(). Referenced by com.quadcap.sql.file.BufferedRandomAccess.flush(). |
|
|
||||||||||||||||||||
|
Read
Implements com.quadcap.sql.file.RandomAccess. Definition at line 122 of file BufferedRandomAccess.java. References com.quadcap.sql.file.BufferedRandomAccess.b, com.quadcap.sql.file.BufferedRandomAccess.Buffer.buf, com.quadcap.sql.file.BufferedRandomAccess.BUFSIZE, com.quadcap.sql.file.BufferedRandomAccess.getBuffer(), and com.quadcap.sql.file.BufferedRandomAccess.read(). Referenced by com.quadcap.sql.file.BufferedRandomAccess.read(). |
|
|
Resize the managed region.
Implements com.quadcap.sql.file.RandomAccess. Definition at line 86 of file BufferedRandomAccess.java. References com.quadcap.sql.file.BufferedRandomAccess.ra, com.quadcap.sql.file.RandomAccess.resize(), and com.quadcap.sql.file.BufferedRandomAccess.resize(). Referenced by com.quadcap.sql.file.BufferedRandomAccess.resize(). |
|
|
Return the size of the managed region.
Implements com.quadcap.sql.file.RandomAccess. Definition at line 79 of file BufferedRandomAccess.java. |
|
||||||||||||||||||||
|
|
|
Definition at line 64 of file BufferedRandomAccess.java. Referenced by com.quadcap.sql.file.BufferedRandomAccess.flushBuffers(), and com.quadcap.sql.file.BufferedRandomAccess.getBuffer(). |
|
|
Definition at line 65 of file BufferedRandomAccess.java. Referenced by com.quadcap.sql.file.BufferedRandomAccess.flushBuffers(), and com.quadcap.sql.file.BufferedRandomAccess.getBuffer(). |
|
|
|
|
Definition at line 69 of file BufferedRandomAccess.java. Referenced by com.quadcap.sql.file.BufferedRandomAccess.BufferedRandomAccess(). |