|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.instantiated.InstantiatedTerm
public class InstantiatedTerm
A term in the inverted index, coupled to the documents it occurs in.
Term
,
Serialized FormField Summary | |
---|---|
static Comparator<InstantiatedTerm> |
comparator
|
static Comparator<Object> |
termComparator
|
Method Summary | |
---|---|
int |
binarySearchAssociatedDocuments(int target)
|
int |
binarySearchAssociatedDocuments(int target,
int offset)
|
int |
binarySearchAssociatedDocuments(int target,
int offset,
int length)
|
String |
field()
|
InstantiatedTermDocumentInformation |
getAssociatedDocument(int documentNumber)
Navigates to the view of this occurrences of this term in a specific document. |
InstantiatedTermDocumentInformation[] |
getAssociatedDocuments()
Meta data per document in which this term is occurring. |
Term |
getTerm()
|
int |
getTermIndex()
|
int |
seekCeilingDocumentInformationIndex(int target)
Finds index to the first beyond the current whose document number is greater than or equal to target, -1 if there is no such element. |
int |
seekCeilingDocumentInformationIndex(int target,
int startOffset)
Finds index to the first beyond the current whose document number is greater than or equal to target, -1 if there is no such element. |
int |
seekCeilingDocumentInformationIndex(int target,
int startOffset,
int endPosition)
Finds index to the first beyond the current whose document number is greater than or equal to target, -1 if there is no such element. |
void |
setTermIndex(int termIndex)
|
String |
text()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Comparator<InstantiatedTerm> comparator
public static final Comparator<Object> termComparator
Method Detail |
---|
public Term getTerm()
public InstantiatedTermDocumentInformation[] getAssociatedDocuments()
public int seekCeilingDocumentInformationIndex(int target)
target
- the document number to match
public int seekCeilingDocumentInformationIndex(int target, int startOffset)
target
- the document number to matchstartOffset
- associated documents index start offset
public int seekCeilingDocumentInformationIndex(int target, int startOffset, int endPosition)
target
- the document number to matchstartOffset
- associated documents index start offsetendPosition
- associated documents index end position
public int binarySearchAssociatedDocuments(int target)
public int binarySearchAssociatedDocuments(int target, int offset)
public int binarySearchAssociatedDocuments(int target, int offset, int length)
target
- value to search for in the arrayoffset
- index of the first valid value in the arraylength
- number of valid values in the array
public InstantiatedTermDocumentInformation getAssociatedDocument(int documentNumber)
documentNumber
- the n:th document in the index
public final String field()
public final String text()
public String toString()
toString
in class Object
public int getTermIndex()
public void setTermIndex(int termIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |