public static class MultiDocValues.MultiSortedDocValues extends SortedDocValues
Modifier and Type | Field and Description |
---|---|
int[] |
docStarts
docbase for each leaf: parallel with
values |
MultiDocValues.OrdinalMap |
mapping
ordinal map mapping ords from
values to global ord space |
SortedDocValues[] |
values
leaf values
|
Modifier and Type | Method and Description |
---|---|
int |
getOrd(int docID)
Returns the ordinal for the specified docID.
|
int |
getValueCount()
Returns the number of unique values.
|
BytesRef |
lookupOrd(int ord)
Retrieves the value for the specified ordinal.
|
get, lookupTerm, termsEnum
public final int[] docStarts
values
public final SortedDocValues[] values
public final MultiDocValues.OrdinalMap mapping
values
to global ord spacepublic int getOrd(int docID)
SortedDocValues
getOrd
in class SortedDocValues
docID
- document ID to lookuppublic BytesRef lookupOrd(int ord)
SortedDocValues
BytesRef
may be re-used across calls to SortedDocValues.lookupOrd(int)
so make sure to copy it
if you want
to keep it around.lookupOrd
in class SortedDocValues
ord
- ordinal to lookup (must be >= 0 and < SortedDocValues.getValueCount()
)SortedDocValues.getOrd(int)
public int getValueCount()
SortedDocValues
getValueCount
in class SortedDocValues
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.