Package org.apache.lucene.codecs.memory
Class MemoryDocValuesFormat
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesFormat
-
- org.apache.lucene.codecs.memory.MemoryDocValuesFormat
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
public class MemoryDocValuesFormat extends DocValuesFormat
In-memory docvalues format
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_BINARY_FIELD_LENGTH
Maximum length for each binary doc values field.
-
Constructor Summary
Constructors Constructor Description MemoryDocValuesFormat()
MemoryDocValuesFormat(float acceptableOverheadRatio)
Creates a new MemoryDocValuesFormat with the specifiedacceptableOverheadRatio
for NumericDocValues.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocValuesConsumer
fieldsConsumer(SegmentWriteState state)
DocValuesProducer
fieldsProducer(SegmentReadState state)
-
Methods inherited from class org.apache.lucene.codecs.DocValuesFormat
availableDocValuesFormats, forName, getName, reloadDocValuesFormats, toString
-
-
-
-
Field Detail
-
MAX_BINARY_FIELD_LENGTH
public static final int MAX_BINARY_FIELD_LENGTH
Maximum length for each binary doc values field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MemoryDocValuesFormat
public MemoryDocValuesFormat()
-
MemoryDocValuesFormat
public MemoryDocValuesFormat(float acceptableOverheadRatio)
Creates a new MemoryDocValuesFormat with the specifiedacceptableOverheadRatio
for NumericDocValues.- Parameters:
acceptableOverheadRatio
- compression parameter for numerics. Currently this is only used when the number of unique values is small.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Detail
-
fieldsConsumer
public DocValuesConsumer fieldsConsumer(SegmentWriteState state) throws IOException
- Specified by:
fieldsConsumer
in classDocValuesFormat
- Throws:
IOException
-
fieldsProducer
public DocValuesProducer fieldsProducer(SegmentReadState state) throws IOException
- Specified by:
fieldsProducer
in classDocValuesFormat
- Throws:
IOException
-
-