net.jxta.impl.xindice.core.indexer
Class NameIndexer
java.lang.Object
net.jxta.impl.xindice.core.filer.Paged
net.jxta.impl.xindice.core.filer.BTree
net.jxta.impl.xindice.core.indexer.NameIndexer
- All Implemented Interfaces:
- DBObject, Indexer
public final class NameIndexer
- extends BTree
- implements Indexer
NameIndexer is a basic implementation of the Indexer interface.
It is used for maintaining element and element@attribute unique
indexes.
Method Summary |
void |
add(Key key,
long pos)
add adds a Document to the Indexer. |
void |
remove(Key key)
remove removes all references to the specified Key from the Indexer. |
void |
setLocation(String dir,
String file)
|
Methods inherited from class net.jxta.impl.xindice.core.filer.BTree |
addValue, addValue, create, createBTreeRoot, createBTreeRoot, createFileHeader, createFileHeader, createFileHeader, createFileHeader, createPageHeader, findBTreeRoot, findBTreeRoot, findValue, findValue, getRootNode, getRootNode, open, query, query, removeValue, removeValue, setRootNode, setRootNode, setSync |
Methods inherited from class net.jxta.impl.xindice.core.filer.Paged |
checkOpened, close, closeDescriptor, deleteArrayInt, deleteArrayLong, deleteArrayShort, deleteArrayValue, drop, exists, flush, getDescriptor, getFile, getFileHeader, getFreePage, getPage, insertArrayInt, insertArrayLong, insertArrayShort, insertArrayValue, isOpened, putDescriptor, readValue, readValue, setFile, unlinkPages, unlinkPages, writeValue, writeValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.jxta.impl.xindice.core.indexer.Indexer |
flush |
NameIndexer
public NameIndexer()
setLocation
public void setLocation(String dir,
String file)
remove
public void remove(Key key)
throws DBException
- Description copied from interface:
Indexer
- remove removes all references to the specified Key from the Indexer.
- Specified by:
remove
in interface Indexer
- Parameters:
key
- The Object ID
- Throws:
DBException
add
public void add(Key key,
long pos)
throws DBException
- Description copied from interface:
Indexer
- add adds a Document to the Indexer.
- Specified by:
add
in interface Indexer
- Parameters:
key
- The Object IDpos
- record position
- Throws:
DBException