|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.core.filer.Paged org.apache.xindice.core.filer.BTree org.apache.xindice.core.indexer.ValueIndexer
ValueIndexer is a basic implementation of the Indexer interface. It is used for maintaining element and element@attribute value 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, Paged.PageKey |
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 |
CONFIG_DESCRIPTORS_MAX, CONFIG_KEYSIZE_MAX, CONFIG_PAGECOUNT, CONFIG_PAGESIZE, DELETED, NO_PAGE, OVERFLOW, UNUSED |
Fields inherited from interface org.apache.xindice.core.indexer.Indexer |
STYLE_FULLTEXT, STYLE_NODENAME, STYLE_NODEVALUE |
Constructor Summary | |
ValueIndexer()
|
Method Summary | |
protected Paged.FileHeader |
createFileHeader()
Override createFileHeader - set page size to 1024 |
IndexerEventHandler |
getIndexerEventHandler()
getIndexerEventHandler returns an instance of IndexerEventHandler that handles Indexer-specific events. |
String |
getIndexStyle()
getIndexStyle returns the Index style. |
String |
getName()
getName retrieves the contextually important name of the object |
IndexPattern[] |
getPatterns()
getPatterns returns the patterns recognized by this Indexer. |
Value |
getTypedValue(String value)
Creates new Value object that depends on string parameter and a type of indexer. |
IndexMatch[] |
queryMatches(IndexQuery query)
queryMatches retrieves a set of IndexMatch instances that match the supplied query. |
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. |
Methods inherited from class org.apache.xindice.core.filer.BTree |
addKey, addValue, addValue, close, create, createBTreeRoot, createBTreeRoot, 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, closeDescriptor, deleteArrayInt, deleteArrayLong, deleteArrayShort, deleteArrayValue, drop, exists, flush, 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.indexer.Indexer |
flush |
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 ValueIndexer()
Method Detail |
protected Paged.FileHeader createFileHeader()
createFileHeader
in class BTree
public void setCollection(Collection collection)
Indexer
setCollection
in interface Indexer
collection
- The owner Collectionpublic void setConfig(Configuration config)
Configurable
setConfig
in interface Configurable
setConfig
in class Paged
public String getName()
Named
getName
in interface Named
public String getIndexStyle()
Indexer
getIndexStyle
in interface Indexer
public IndexPattern[] getPatterns()
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 elementsThese patterns are used by the IndexManager when handling SAX events. All events that match the any of specified patterns will result in an call to the Indexer's event handler.
getPatterns
in interface Indexer
public Value getTypedValue(String value)
value
- string value to convert
public IndexMatch[] queryMatches(IndexQuery query) throws DBException
Indexer
queryMatches
in interface Indexer
query
- The IndexQuery to use
DBException
public IndexerEventHandler getIndexerEventHandler()
Indexer
getIndexerEventHandler
in interface Indexer
IndexerEventHandler
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |