public class InstantiatedTerm
extends java.lang.Object
implements java.io.Serializable
Term,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<InstantiatedTerm> |
comparator |
static java.util.Comparator<java.lang.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) |
java.lang.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) |
java.lang.String |
text() |
java.lang.String |
toString() |
public static final java.util.Comparator<InstantiatedTerm> comparator
public static final java.util.Comparator<java.lang.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 java.lang.String field()
public final java.lang.String text()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getTermIndex()
public void setTermIndex(int termIndex)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.