Package com.db4o.internal.classindex
Class BTreeClassIndexStrategy
- java.lang.Object
-
- com.db4o.internal.classindex.AbstractClassIndexStrategy
-
- com.db4o.internal.classindex.BTreeClassIndexStrategy
-
- All Implemented Interfaces:
ClassIndexStrategy
public class BTreeClassIndexStrategy extends AbstractClassIndexStrategy
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.classindex.AbstractClassIndexStrategy
_classMetadata
-
-
Constructor Summary
Constructors Constructor Description BTreeClassIndexStrategy(ClassMetadata classMetadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator4
allSlotIDs(Transaction trans)
BTree
btree()
static BTree
btree(ClassMetadata clazz)
void
defragIndex(DefragmentContextImpl context)
void
defragReference(ClassMetadata classMetadata, DefragmentContextImpl context, int classIndexID)
void
dontDelete(Transaction transaction, int id)
int
entryCount(Transaction ta)
int
id()
IntVisitable
idVisitable(Transaction trans)
void
initialize(ObjectContainerBase stream)
protected void
internalAdd(Transaction trans, int id)
protected void
internalRemove(Transaction ta, int id)
static Iterator4
iterate(ClassMetadata clazz, Transaction trans)
void
purge()
void
read(ObjectContainerBase stream, int indexID)
void
traverseIds(Transaction ta, Visitor4 command)
Traverses all index entries (java.lang.Integer references).int
write(Transaction trans)
-
Methods inherited from class com.db4o.internal.classindex.AbstractClassIndexStrategy
add, classMetadataID, ownLength, remove
-
-
-
-
Constructor Detail
-
BTreeClassIndexStrategy
public BTreeClassIndexStrategy(ClassMetadata classMetadata)
-
-
Method Detail
-
btree
public BTree btree()
-
entryCount
public int entryCount(Transaction ta)
-
initialize
public void initialize(ObjectContainerBase stream)
-
purge
public void purge()
-
read
public void read(ObjectContainerBase stream, int indexID)
-
write
public int write(Transaction trans)
-
traverseIds
public void traverseIds(Transaction ta, Visitor4 command)
Description copied from interface:ClassIndexStrategy
Traverses all index entries (java.lang.Integer references).
-
internalAdd
protected void internalAdd(Transaction trans, int id)
- Specified by:
internalAdd
in classAbstractClassIndexStrategy
-
internalRemove
protected void internalRemove(Transaction ta, int id)
- Specified by:
internalRemove
in classAbstractClassIndexStrategy
-
dontDelete
public void dontDelete(Transaction transaction, int id)
-
defragReference
public void defragReference(ClassMetadata classMetadata, DefragmentContextImpl context, int classIndexID)
-
id
public int id()
-
allSlotIDs
public Iterator4 allSlotIDs(Transaction trans)
-
defragIndex
public void defragIndex(DefragmentContextImpl context)
-
btree
public static BTree btree(ClassMetadata clazz)
-
iterate
public static Iterator4 iterate(ClassMetadata clazz, Transaction trans)
-
idVisitable
public IntVisitable idVisitable(Transaction trans)
-
-