1 package com.quadcap.sql.index; 2 3 40 41 import java.io.IOException ; 42 import java.util.Enumeration ; 43 44 49 public interface BIndex { 50 53 public Comparator getComparator(); 54 55 58 public void free() throws IOException ; 59 60 65 public int get(byte[] key, int len, byte[] data) throws IOException ; 66 67 70 public boolean delete(byte[] key) throws IOException ; 71 72 79 public void insert(byte[] key, int klen, 80 byte[] data, int off, int len) throws IOException ; 81 82 88 public void update(byte[] key, int klen, 89 byte[] data, int off, int len) throws IOException ; 90 91 96 public boolean set(byte[] key, int klen, 97 byte[] data, int off, int len) throws IOException ; 98 99 102 public BCursor getCursor(boolean skipSetup) throws IOException ; 103 104 } 109 | Popular Tags |