|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.filer.Paged
org.apache.xindice.core.filer.BTree
org.apache.xindice.core.indexer.NameIndexer
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 inherited from class org.apache.xindice.core.filer.BTree |
BTree.BTreeFileHeader, BTree.BTreePageHeader, BTree.BTreeRootInfo |
| Nested classes inherited from class org.apache.xindice.core.filer.Paged |
Paged.FileHeader, Paged.Page, Paged.PageHeader |
| Field Summary |
| Fields inherited from class org.apache.xindice.core.filer.BTree |
BRANCH, LEAF, STREAM |
| Fields inherited from class org.apache.xindice.core.filer.Paged |
DELETED, NO_PAGE, OVERFLOW, UNUSED |
| Fields inherited from interface org.apache.xindice.core.indexer.Indexer |
STYLE_FULLTEXT, STYLE_NODENAME, STYLE_NODEVALUE |
| Constructor Summary | |
NameIndexer()
|
|
| Method Summary | |
void |
add(java.lang.String value,
Key key,
int pos,
int len,
short elemID,
short attrID)
add adds a Document to the Indexer. |
void |
flush()
flush forcefully flushes any unwritten buffers to disk. |
java.lang.String |
getIndexStyle()
getIndexStyle returns the Index style. |
java.lang.String |
getName()
getName retrieves the contextually important name of the object |
java.lang.String |
getPattern()
getPattern returns the pattern recognized by this Indexer. |
IndexMatch[] |
queryMatches(IndexQuery query)
queryMatches retrieves a set of IndexMatch instances that match the supplied query. |
void |
remove(java.lang.String value,
Key key,
int pos,
int len,
short elemID,
short attrID)
remove removes all references to the specified Key from the Indexer. |
void |
setCollection(Collection collection)
setCollection tells the Indexer who its parent is. |
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
void |
setLocation(java.lang.String location)
|
| Methods inherited from class org.apache.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 |
| Methods inherited from class org.apache.xindice.core.filer.Paged |
checkOpened, close, closeDescriptor, deleteArrayInt, deleteArrayLong, deleteArrayShort, deleteArrayValue, drop, exists, getConfig, 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 org.apache.xindice.core.DBObject |
close, create, drop, exists, isOpened, open |
| Methods inherited from interface org.apache.xindice.util.Configurable |
getConfig |
| Constructor Detail |
public NameIndexer()
| Method Detail |
public void setConfig(Configuration config)
Configurable
setConfig in interface ConfigurablesetConfig in class Pagedpublic java.lang.String getName()
Named
getName in interface Namedpublic void setLocation(java.lang.String location)
public void setCollection(Collection collection)
Indexer
setCollection in interface Indexercollection - The owner Collectionpublic java.lang.String getIndexStyle()
Indexer
getIndexStyle in interface Indexerpublic java.lang.String getPattern()
Indexer
contact@name Indexes all contacts by name attribute
memo Indexes the text of all memo elements
contact@* Indexes all contact attributes
*@name Indexes the name attribute for all elements
* Indexes the text of all elements
*@* Indexes all attributes of all elements
These patterns are used by the IndexManager when handling SAX events.
All events that match the specified pattern will result in an add or
remove call to the Indexer.
getPattern in interface Indexer
public void remove(java.lang.String value,
Key key,
int pos,
int len,
short elemID,
short attrID)
throws DBException
Indexer
remove in interface Indexervalue - The value to removekey - The Object IDpos - The offset into the stream the Element occurs atlen - The length of the substream for the ElementelemID - The Element ID of the valueattrID - The Attribute ID of the value (if any, else -1)
DBException
public void add(java.lang.String value,
Key key,
int pos,
int len,
short elemID,
short attrID)
throws DBException
Indexer
add in interface Indexervalue - The value to removekey - The Object IDpos - The offset into the stream the Element occurs atlen - The length of the substream for the ElementelemID - The Element ID of the valueattrID - The Attribute ID of the value (if any, else -1)
DBException
public void flush()
throws DBException
Indexer
flush in interface Indexerflush in class PagedDBException
public IndexMatch[] queryMatches(IndexQuery query)
throws DBException
Indexer
queryMatches in interface Indexerquery - The IndexQuery to use
DBException
|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||