public class MultiDocValues extends Object
NOTE: for multi readers, you'll get better
performance by gathering the sub readers using
IndexReader.getContext()
to get the
atomic leaves and then operate per-LeafReader,
instead of using this class.
NOTE: This is very costly.
Modifier and Type | Class and Description |
---|---|
static class |
MultiDocValues.MultiSortedDocValues
Implements SortedDocValues over n subs, using an OrdinalMap
|
static class |
MultiDocValues.MultiSortedSetDocValues
Implements MultiSortedSetDocValues over n subs, using an OrdinalMap
|
Modifier and Type | Method and Description |
---|---|
static BinaryDocValues |
getBinaryValues(IndexReader r,
String field)
Returns a BinaryDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static NumericDocValues |
getNormValues(IndexReader r,
String field)
Returns a NumericDocValues for a reader's norms (potentially merging on-the-fly).
|
static NumericDocValues |
getNumericValues(IndexReader r,
String field)
Returns a NumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedNumericDocValues |
getSortedNumericValues(IndexReader r,
String field)
Returns a SortedNumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedSetDocValues |
getSortedSetValues(IndexReader r,
String field)
Returns a SortedSetDocValues for a reader's docvalues (potentially doing extremely slow things).
|
static SortedDocValues |
getSortedValues(IndexReader r,
String field)
Returns a SortedDocValues for a reader's docvalues (potentially doing extremely slow things).
|
public static NumericDocValues getNormValues(IndexReader r, String field) throws IOException
This is a slow way to access normalization values. Instead, access them per-segment
with LeafReader.getNormValues(String)
IOException
public static NumericDocValues getNumericValues(IndexReader r, String field) throws IOException
IOException
public static BinaryDocValues getBinaryValues(IndexReader r, String field) throws IOException
IOException
public static SortedNumericDocValues getSortedNumericValues(IndexReader r, String field) throws IOException
This is a slow way to access sorted numeric values. Instead, access them per-segment
with LeafReader.getSortedNumericDocValues(String)
IOException
public static SortedDocValues getSortedValues(IndexReader r, String field) throws IOException
This is an extremely slow way to access sorted values. Instead, access them per-segment
with LeafReader.getSortedDocValues(String)
IOException
public static SortedSetDocValues getSortedSetValues(IndexReader r, String field) throws IOException
This is an extremely slow way to access sorted values. Instead, access them per-segment
with LeafReader.getSortedSetDocValues(String)
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.