|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.store.instantiated.InstantiatedTermFreqVector
org.apache.lucene.store.instantiated.InstantiatedTermPositionVector
public class InstantiatedTermPositionVector
Extended vector space view of a document in an InstantiatedIndexReader.
TermPositionVector,
Serialized Form| Constructor Summary | |
|---|---|
InstantiatedTermPositionVector(InstantiatedDocument document,
java.lang.String field)
|
|
| Method Summary | |
|---|---|
TermVectorOffsetInfo[] |
getOffsets(int index)
Returns an array of TermVectorOffsetInfo in which the term is found. |
int[] |
getTermPositions(int index)
Returns an array of positions in which the term is found. |
| Methods inherited from class org.apache.lucene.store.instantiated.InstantiatedTermFreqVector |
|---|
getField, getTermDocumentInformations, getTermFrequencies, getTerms, indexesOf, indexOf, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.lucene.index.TermFreqVector |
|---|
getField, getTermFrequencies, getTerms, indexesOf, indexOf, size |
| Constructor Detail |
|---|
public InstantiatedTermPositionVector(InstantiatedDocument document,
java.lang.String field)
| Method Detail |
|---|
public int[] getTermPositions(int index)
TermPositionVectorindexOf method.
May return null if positions have not been stored.
getTermPositions in interface TermPositionVectorpublic TermVectorOffsetInfo[] getOffsets(int index)
TermPositionVector
getOffsets in interface TermPositionVectorindex - The position in the array to get the offsets from
Token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||