Class DirectDocValuesFormat
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 .NET 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
Limitations:
- For binary and sorted fields the total space required for all binary values cannot exceed about 2.1 GB (see MAX_TOTAL_BYTES_LENGTH).
- For sorted set fields, the sum of the size of each document's set of values cannot exceed about 2.1 B values (see MAX_SORTED_SET_ORDS). For example, if every document has 10 values (10 instances of SortedSetDocValuesField) added, then no more than ~210 M documents can be added to one segment.
Inherited Members
Assembly: Lucene.Net.Codecs.dll
Syntax
public class DirectDocValuesFormat : DocValuesFormat
Constructors
Name | Description |
---|---|
DirectDocValuesFormat() | Sole constructor. |
Fields
Name | Description |
---|---|
MAX_SORTED_SET_ORDS | The sum of the number of values across all documents in a sorted set field cannot exceed this. |
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. |
Methods
Name | Description |
---|---|
FieldsConsumer(SegmentWriteState) | |
FieldsProducer(SegmentReadState) |