Class SortedSetDocValues
A per-document set of presorted byte[] values.
Per-Document values in a Sorted
Inheritance
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public abstract class SortedSetDocValues : object
Constructors
| Improve this Doc View SourceSortedSetDocValues()
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Declaration
protected SortedSetDocValues()
Fields
| Improve this Doc View SourceNO_MORE_ORDS
When returned by Next
Declaration
public static readonly long NO_MORE_ORDS
Field Value
Type | Description |
---|---|
System. |
Properties
| Improve this Doc View SourceValueCount
Returns the number of unique values.
Declaration
public abstract long ValueCount { get; }
Property Value
Type | Description |
---|---|
System. |
Number of unique values in this Sorted |
Methods
| Improve this Doc View SourceGetTermsEnum()
Returns a Terms
Declaration
public virtual TermsEnum GetTermsEnum()
Returns
Type | Description |
---|---|
Terms |
LookupOrd(Int64, BytesRef)
Retrieves the value for the specified ordinal.
Declaration
public abstract void LookupOrd(long ord, BytesRef result)
Parameters
Type | Name | Description |
---|---|---|
System. |
ord | ordinal to lookup |
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 long LookupTerm(BytesRef key)
Parameters
Type | Name | Description |
---|---|---|
Bytes |
key | Key to look up |
Returns
Type | Description |
---|---|
System. |
NextOrd()
Returns the next ordinal for the current document (previously
set by Set
Declaration
public abstract long NextOrd()
Returns
Type | Description |
---|---|
System. |
Next ordinal for the document, or NO_MORE_ORDS. ordinals are dense, start at 0, then increment by 1 for the next value in sorted order. |
SetDocument(Int32)
Sets iteration to the specified docID
Declaration
public abstract void SetDocument(int docID)
Parameters
Type | Name | Description |
---|---|---|
System. |
docID | document ID |