public static class MultiDocValues.MultiSortedSetDocValues extends SortedSetDocValues
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 |
SortedSetDocValues[] |
values
leaf values
|
NO_MORE_ORDS
Constructor and Description |
---|
MultiSortedSetDocValues(SortedSetDocValues[] values,
int[] docStarts,
MultiDocValues.OrdinalMap mapping)
Creates a new MultiSortedSetDocValues over
values |
Modifier and Type | Method and Description |
---|---|
long |
getValueCount()
Returns the number of unique values.
|
BytesRef |
lookupOrd(long ord)
Retrieves the value for the specified ordinal.
|
long |
nextOrd()
Returns the next ordinal for the current document (previously
set by
SortedSetDocValues.setDocument(int) . |
void |
setDocument(int docID)
Sets iteration to the specified docID
|
lookupTerm, termsEnum
public final int[] docStarts
values
public final SortedSetDocValues[] values
public final MultiDocValues.OrdinalMap mapping
values
to global ord spacepublic MultiSortedSetDocValues(SortedSetDocValues[] values, int[] docStarts, MultiDocValues.OrdinalMap mapping) throws IOException
values
IOException
public long nextOrd()
SortedSetDocValues
SortedSetDocValues.setDocument(int)
.nextOrd
in class SortedSetDocValues
SortedSetDocValues.NO_MORE_ORDS
.
ordinals are dense, start at 0, then increment by 1 for
the next value in sorted order.public void setDocument(int docID)
SortedSetDocValues
setDocument
in class SortedSetDocValues
docID
- document IDpublic BytesRef lookupOrd(long ord)
SortedSetDocValues
BytesRef
may be re-used across calls to lookupOrd so make sure to
copy it
if you want to keep it
around.lookupOrd
in class SortedSetDocValues
ord
- ordinal to lookupSortedSetDocValues.nextOrd()
public long getValueCount()
SortedSetDocValues
getValueCount
in class SortedSetDocValues
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.