|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.index.MultiDocValues.OrdinalMap
public static class MultiDocValues.OrdinalMap
maps per-segment ordinals to/from global ordinal space
| Constructor Summary | |
|---|---|
MultiDocValues.OrdinalMap(Object owner,
TermsEnum[] subs)
Creates an ordinal map that allows mapping ords to/from a merged space from subs. |
|
| Method Summary | |
|---|---|
long |
getGlobalOrd(int subIndex,
long segmentOrd)
Given a segment number and segment ordinal, returns the corresponding global ordinal. |
int |
getSegmentNumber(long globalOrd)
Given a global ordinal, returns the index of the first sub that contains this term. |
long |
getSegmentOrd(int subIndex,
long globalOrd)
Given a segment number and global ordinal, returns the corresponding segment ordinal. |
long |
getValueCount()
Returns the total number of unique terms in global ord space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiDocValues.OrdinalMap(Object owner,
TermsEnum[] subs)
throws IOException
subs.
owner - a cache keysubs - TermsEnums that support TermsEnum.ord(). They need
not be dense (e.g. can be FilteredTermsEnums}.
IOException - if an I/O error occurred.| Method Detail |
|---|
public long getGlobalOrd(int subIndex,
long segmentOrd)
public long getSegmentOrd(int subIndex,
long globalOrd)
public int getSegmentNumber(long globalOrd)
public long getValueCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||