| 1 21 package com.db4o.inside.classindex; 22 23 import com.db4o.*; 24 import com.db4o.foundation.*; 25 26 29 public interface ClassIndexStrategy { 30 void initialize(YapStream stream); 31 void read(YapStream stream, int indexID); 32 int write(Transaction transaction); 33 void add(Transaction transaction, int id); 34 void remove(Transaction transaction, int id); 35 int entryCount(Transaction transaction); 36 int ownLength(); 37 void purge(); 38 39 42 void traverseAll(Transaction transaction,Visitor4 command); 43 void dontDelete(Transaction transaction, int id); 44 45 Iterator4 allSlotIDs(Transaction trans); 46 void defragReference(YapClass yapClass,ReaderPair readers,int classIndexID); 47 int id(); 48 void defragIndex(ReaderPair readers); 49 } 50 | Popular Tags |