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
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
MemoryDocValuesFormat
public MemoryDocValuesFormat()
- Calls
MemoryDocValuesFormat(PackedInts.DEFAULT)
MemoryDocValuesFormat
public MemoryDocValuesFormat(float acceptableOverheadRatio)
- Creates a new MemoryDocValuesFormat with the specified
acceptableOverheadRatio
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.
fieldsConsumer
public DocValuesConsumer fieldsConsumer(SegmentWriteState state)
throws IOException
- Specified by:
fieldsConsumer
in class DocValuesFormat
- Throws:
IOException
fieldsProducer
public DocValuesProducer fieldsProducer(SegmentReadState state)
throws IOException
- Specified by:
fieldsProducer
in class DocValuesFormat
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.