1 package com.quadcap.sql.index; 2 3 40 41 import java.io.IOException ; 42 43 48 public interface BCursor { 49 51 54 boolean seek(byte[] key, int len) throws IOException ; 55 56 59 boolean seek(byte[] buf) throws IOException ; 60 61 64 void beforeFirst() throws IOException ; 65 66 69 void afterLast() throws IOException ; 70 71 76 boolean absolute(int x) throws IOException ; 77 78 82 boolean next() throws IOException ; 83 84 88 boolean prev() throws IOException ; 89 90 int getKey(byte[] buf) throws IOException ; 91 byte[] getKeyBuf(); 92 void setKeyBuf(byte[] buf); 93 int getKeyLen(); 94 byte[] getKey(); 96 int getVal(byte[] buf) throws IOException ; 97 byte[] getValBuf(); 98 void setValBuf(byte[] buf); 99 int getValLen(); 100 byte[] getVal(); 102 long getValAsLong() throws IOException ; 103 104 long size() throws IOException ; 105 long position() throws IOException ; 106 107 110 void release(); 111 112 116 void close() throws IOException ; 117 118 121 boolean delete() throws IOException ; 122 123 127 boolean insert(byte[] key, int klen, 128 byte[] data, int doff, int dlen) throws IOException ; 129 boolean insert(byte[] key, byte[] data) throws IOException ; 130 131 134 boolean replace(byte[] data, int doff, int dlen) throws IOException ; 135 boolean replace(byte[] data) throws IOException ; 136 137 } 138 | Popular Tags |