public class InstantiatedTerm extends Object implements Serializable
Term
,
Serialized FormModifier and Type | Field and Description |
---|---|
static Comparator<InstantiatedTerm> |
comparator |
static Comparator<Object> |
termComparator |
Modifier and Type | Method and Description |
---|---|
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() |
public static final Comparator<InstantiatedTerm> comparator
public static final Comparator<Object> termComparator
public Term getTerm()
public InstantiatedTermDocumentInformation[] getAssociatedDocuments()
public int seekCeilingDocumentInformationIndex(int target)
target
- the document number to matchpublic int seekCeilingDocumentInformationIndex(int target, int startOffset)
target
- the document number to matchstartOffset
- associated documents index start offsetpublic int seekCeilingDocumentInformationIndex(int target, int startOffset, int endPosition)
target
- the document number to matchstartOffset
- associated documents index start offsetendPosition
- associated documents index end positionpublic 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 arraypublic InstantiatedTermDocumentInformation getAssociatedDocument(int documentNumber)
documentNumber
- the n:th document in the indexpublic final String field()
public final String text()
public int getTermIndex()
public void setTermIndex(int termIndex)