org.apache.lucene.codecs.memory
Class DirectDocValuesFormat

java.lang.Object
  extended by org.apache.lucene.codecs.DocValuesFormat
      extended by org.apache.lucene.codecs.memory.DirectDocValuesFormat
All Implemented Interfaces:
NamedSPILoader.NamedSPI

public class DirectDocValuesFormat
extends DocValuesFormat

In-memory docvalues format that does no (or very little) compression. Indexed values are stored on disk, but then at search time all values are loaded into memory as simple java arrays. For numeric values, it uses byte[], short[], int[], long[] as necessary to fit the range of the values. For binary values, there is an int (4 bytes) overhead per value.

Limitations:


Field Summary
static int MAX_SORTED_SET_ORDS
          The sum of the number of values across all documents in a sorted set field cannot exceed this.
static int MAX_TOTAL_BYTES_LENGTH
          The sum of all byte lengths for binary field, or for the unique values in sorted or sorted set fields, cannot exceed this.
 
Constructor Summary
DirectDocValuesFormat()
          Sole constructor.
 
Method Summary
 DocValuesConsumer fieldsConsumer(SegmentWriteState state)
           
 DocValuesProducer fieldsProducer(SegmentReadState state)
           
 
Methods inherited from class org.apache.lucene.codecs.DocValuesFormat
availableDocValuesFormats, forName, getName, reloadDocValuesFormats, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_TOTAL_BYTES_LENGTH

public static final int MAX_TOTAL_BYTES_LENGTH
The sum of all byte lengths for binary field, or for the unique values in sorted or sorted set fields, cannot exceed this.

See Also:
Constant Field Values

MAX_SORTED_SET_ORDS

public static final int MAX_SORTED_SET_ORDS
The sum of the number of values across all documents in a sorted set field cannot exceed this.

See Also:
Constant Field Values
Constructor Detail

DirectDocValuesFormat

public DirectDocValuesFormat()
Sole constructor.

Method Detail

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-2014 Apache Software Foundation. All Rights Reserved.