JXTA

net.jxta.impl.xindice.core.indexer
Class NameIndexer

java.lang.Object
  extended by net.jxta.impl.xindice.core.filer.Paged
      extended by net.jxta.impl.xindice.core.filer.BTree
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.jxta.impl.xindice.core.filer.BTree
BTree.BTreeFileHeader, BTree.BTreePageHeader, BTree.BTreeRootInfo
 
Nested classes/interfaces inherited from class net.jxta.impl.xindice.core.filer.Paged
Paged.FileHeader, Paged.Page, Paged.PageHeader
 
Field Summary
 
Fields inherited from class net.jxta.impl.xindice.core.filer.BTree
BRANCH, LEAF, STREAM
 
Fields inherited from class net.jxta.impl.xindice.core.filer.Paged
DELETED, NO_PAGE, OVERFLOW, sync, UNUSED
 
Constructor Summary
NameIndexer()
           
 
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
 
Methods inherited from interface net.jxta.impl.xindice.core.DBObject
close, create, drop, exists, isOpened, open
 

Constructor Detail

NameIndexer

public NameIndexer()
Method Detail

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 ID
pos - record position
Throws:
DBException

JXSE