Class SortedDocValues
A per-document byte[] with presorted values.
Per-Document values in a Sorted
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public abstract class SortedDocValues : BinaryDocValues
Constructors
| Improve this Doc View SourceSortedDocValues()
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Declaration
protected SortedDocValues()
Properties
| Improve this Doc View SourceValueCount
Returns the number of unique values.
Declaration
public abstract int ValueCount { get; }
Property Value
Type | Description |
---|---|
System. |
Number of unique values in this Sorted |
Methods
| Improve this Doc View SourceGet(Int32, BytesRef)
Declaration
public override void Get(int docID, BytesRef result)
Parameters
Type | Name | Description |
---|---|---|
System. |
docID | |
Bytes |
result |
Overrides
| Improve this Doc View SourceGetOrd(Int32)
Returns the ordinal for the specified docID.
Declaration
public abstract int GetOrd(int docID)
Parameters
Type | Name | Description |
---|---|---|
System. |
docID | document ID to lookup |
Returns
Type | Description |
---|---|
System. |
ordinal for the document: this is dense, starts at 0, then increments by 1 for the next value in sorted order. Note that missing values are indicated by -1. |
GetTermsEnum()
Returns a Terms
Declaration
public virtual TermsEnum GetTermsEnum()
Returns
Type | Description |
---|---|
Terms |
LookupOrd(Int32, BytesRef)
Retrieves the value for the specified ordinal.
Declaration
public abstract void LookupOrd(int ord, BytesRef result)
Parameters
Type | Name | Description |
---|---|---|
System. |
ord | ordinal to lookup (must be >= 0 and < Value |
Bytes |
result | will be populated with the ordinal's value |
See Also
| Improve this Doc View SourceLookupTerm(BytesRef)
If key
exists, returns its ordinal, else
returns -insertionPoint-1
, like
Declaration
public virtual int LookupTerm(BytesRef key)
Parameters
Type | Name | Description |
---|---|---|
Bytes |
key | Key to look up |
Returns
Type | Description |
---|---|
System. |