| com.quadcap.sql.index.BCursor
All known Subclasses: com.quadcap.sql.index.BtreeCursor,
BCursor | public interface BCursor (Code) | | BCursor
author: Stan Bailes |
Method Summary | |
boolean | absolute(int x) Move to the specified record; one-based.
-1 means last record, -2 means next to last, etc.
true if the specified record exists. | void | afterLast() | void | beforeFirst() | void | close() Release any resources held by this cursor (but maintain ownership of
it -- it can be resurrected by another positioning call. | boolean | delete() | int | getKey(byte[] buf) | byte[] | getKey() | byte[] | getKeyBuf() | int | getKeyLen() | int | getVal(byte[] buf) | byte[] | getVal() | long | getValAsLong() | byte[] | getValBuf() | int | getValLen() | boolean | insert(byte[] key, int klen, byte[] data, int doff, int dlen) Insert a new key/data pair. | boolean | insert(byte[] key, byte[] data) | boolean | next() Move past the next record and return true the cursor is
now pointed at a valid record. | long | position() | boolean | prev() Move before the previous record and return true the cursor is
now pointed at a valid record. | void | release() | boolean | replace(byte[] data, int doff, int dlen) | boolean | replace(byte[] data) | boolean | seek(byte[] key, int len) | boolean | seek(byte[] buf) | void | setKeyBuf(byte[] buf) | void | setValBuf(byte[] buf) | long | size() |
absolute | boolean absolute(int x) throws IOException(Code) | | Move to the specified record; one-based.
-1 means last record, -2 means next to last, etc.
true if the specified record exists. |
afterLast | void afterLast() throws IOException(Code) | | Position the cursor after the last record
|
beforeFirst | void beforeFirst() throws IOException(Code) | | Position cursor before the first record
|
close | void close() throws IOException(Code) | | Release any resources held by this cursor (but maintain ownership of
it -- it can be resurrected by another positioning call.
|
delete | boolean delete() throws IOException(Code) | | Delete the currently positioned record
|
getKeyBuf | byte[] getKeyBuf()(Code) | | |
getKeyLen | int getKeyLen()(Code) | | |
getValBuf | byte[] getValBuf()(Code) | | |
getValLen | int getValLen()(Code) | | |
insert | boolean insert(byte[] key, int klen, byte[] data, int doff, int dlen) throws IOException(Code) | | Insert a new key/data pair. We are presumably positioned just before
the spot where the new record should go, but we will check, anyway.
|
next | boolean next() throws IOException(Code) | | Move past the next record and return true the cursor is
now pointed at a valid record.
|
prev | boolean prev() throws IOException(Code) | | Move before the previous record and return true the cursor is
now pointed at a valid record.
|
release | void release()(Code) | | Release this cursor back to the pool
|
replace | boolean replace(byte[] data, int doff, int dlen) throws IOException(Code) | | Replace the data portion of the current item with the specified data
|
seek | boolean seek(byte[] key, int len) throws IOException(Code) | | Seek to (before) the specified key
|
seek | boolean seek(byte[] buf) throws IOException(Code) | | Seek to (before) the specified key
|
setKeyBuf | void setKeyBuf(byte[] buf)(Code) | | |
setValBuf | void setValBuf(byte[] buf)(Code) | | |
|
|