public class DefaultSortedSetDocValuesReaderState extends SortedSetDocValuesReaderState
SortedSetDocValuesFacetCounts
. You must ensure the original
IndexReader
passed to the constructor is not closed whenever you use this class!SortedSetDocValuesReaderState.OrdRange
Modifier and Type | Field and Description |
---|---|
IndexReader |
reader
IndexReader passed to the constructor. |
NULL_ACCOUNTABLE
Constructor and Description |
---|
DefaultSortedSetDocValuesReaderState(IndexReader reader)
Creates this, pulling doc values from the default
FacetsConfig.DEFAULT_INDEX_FIELD_NAME . |
DefaultSortedSetDocValuesReaderState(IndexReader reader,
String field)
Creates this, pulling doc values from the specified
field.
|
Modifier and Type | Method and Description |
---|---|
Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
SortedSetDocValues |
getDocValues()
Return top-level doc values.
|
String |
getField()
Indexed field we are reading.
|
SortedSetDocValuesReaderState.OrdRange |
getOrdRange(String dim)
Returns the
SortedSetDocValuesReaderState.OrdRange for this dimension. |
Map<String,SortedSetDocValuesReaderState.OrdRange> |
getPrefixToOrdRange()
Returns mapping from prefix to
SortedSetDocValuesReaderState.OrdRange . |
IndexReader |
getReader()
Returns top-level index reader.
|
int |
getSize()
Number of unique labels.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
String |
toString() |
public final IndexReader reader
IndexReader
passed to the constructor.public DefaultSortedSetDocValuesReaderState(IndexReader reader) throws IOException
FacetsConfig.DEFAULT_INDEX_FIELD_NAME
.IOException
public DefaultSortedSetDocValuesReaderState(IndexReader reader, String field) throws IOException
IOException
public long ramBytesUsed()
public Collection<Accountable> getChildResources()
Accountables
public SortedSetDocValues getDocValues() throws IOException
getDocValues
in class SortedSetDocValuesReaderState
IOException
public Map<String,SortedSetDocValuesReaderState.OrdRange> getPrefixToOrdRange()
SortedSetDocValuesReaderState.OrdRange
.getPrefixToOrdRange
in class SortedSetDocValuesReaderState
public SortedSetDocValuesReaderState.OrdRange getOrdRange(String dim)
SortedSetDocValuesReaderState.OrdRange
for this dimension.getOrdRange
in class SortedSetDocValuesReaderState
public String getField()
getField
in class SortedSetDocValuesReaderState
public IndexReader getReader()
SortedSetDocValuesReaderState
getReader
in class SortedSetDocValuesReaderState
public int getSize()
getSize
in class SortedSetDocValuesReaderState
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.