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 System.Int32 (4 bytes) overhead per value.
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.
Inheritance
System.Object
Lucene.Net.Codecs.DocValuesFormat
DirectDocValuesFormat
Inherited Members
Lucene.Net.Codecs.DocValuesFormat.SetDocValuesFormatFactory(Lucene.Net.Codecs.IDocValuesFormatFactory)
Lucene.Net.Codecs.DocValuesFormat.GetDocValuesFormatFactory()
Lucene.Net.Codecs.DocValuesFormat.Name
Lucene.Net.Codecs.DocValuesFormat.ToString()
Lucene.Net.Codecs.DocValuesFormat.AvailableDocValuesFormats
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Codecs.Memory
Assembly: Lucene.Net.Codecs.dll
Syntax
[DocValuesFormatName("Direct")]
public class DirectDocValuesFormat : DocValuesFormat
Constructors
| Improve this Doc View SourceDirectDocValuesFormat()
Sole constructor.
Declaration
public DirectDocValuesFormat()
Fields
| Improve this Doc View SourceMAX_SORTED_SET_ORDS
The sum of the number of values across all documents in a sorted set field cannot exceed this.
Declaration
public static readonly int MAX_SORTED_SET_ORDS
Field Value
Type | Description |
---|---|
System.Int32 |
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.
Declaration
public static readonly int MAX_TOTAL_BYTES_LENGTH
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceFieldsConsumer(SegmentWriteState)
Declaration
public override DocValuesConsumer FieldsConsumer(SegmentWriteState state)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.SegmentWriteState | state |
Returns
Type | Description |
---|---|
Lucene.Net.Codecs.DocValuesConsumer |
Overrides
Lucene.Net.Codecs.DocValuesFormat.FieldsConsumer(Lucene.Net.Index.SegmentWriteState)
|
Improve this Doc
View Source
FieldsProducer(SegmentReadState)
Declaration
public override DocValuesProducer FieldsProducer(SegmentReadState state)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.SegmentReadState | state |
Returns
Type | Description |
---|---|
Lucene.Net.Codecs.DocValuesProducer |
Overrides
Lucene.Net.Codecs.DocValuesFormat.FieldsProducer(Lucene.Net.Index.SegmentReadState)