org.dbxml.core.indexer
Class IndexMatch
java.lang.Object
|
+--org.dbxml.core.indexer.IndexMatch
- All Implemented Interfaces:
- java.lang.Comparable
- public final class IndexMatch
- extends java.lang.Object
- implements java.lang.Comparable
IndexMatch is used for representing match information. IndexMatches
are the basic unit of information between Indexers and the IndexManager
for performing queries and query optimization.
Method Summary |
int |
compareTo(java.lang.Object obj)
|
short |
getAttribute()
getAttribute returns the Attribute symbol ID for the Match. |
short |
getElement()
getElement returns the Element symbol ID for the Match. |
Key |
getKey()
getKey returns the Document Key for the IndexMatch. |
int |
getLength()
getLength returns the Node length for the Match. |
int |
getPosition()
getPosition returns the Document position for the Match. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IndexMatch
public IndexMatch()
IndexMatch
public IndexMatch(Key key,
int pos,
int len,
short elem,
short attr)
IndexMatch
public IndexMatch(Key key,
int pos,
int len)
IndexMatch
public IndexMatch(Key key,
IndexPattern pattern)
getKey
public final Key getKey()
- getKey returns the Document Key for the IndexMatch.
- Returns:
- The Key
getPosition
public final int getPosition()
- getPosition returns the Document position for the Match.
- Returns:
- The Document position
getLength
public final int getLength()
- getLength returns the Node length for the Match.
- Returns:
- The Node length
getElement
public final short getElement()
- getElement returns the Element symbol ID for the Match.
- Returns:
- The Element Symbol ID
getAttribute
public final short getAttribute()
- getAttribute returns the Attribute symbol ID for the Match.
- Returns:
- The Attribute Symbol ID
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright (c) 1999-2001 The dbXML Group, All rights reserved