Class RandomAccessOrds
Extension of SortedSetDocValues that supports random access to the ordinals of a document.
Operations via this API are independent of the iterator api (NextOrd()) and do not impact its state.
Codecs can optionally extend this API if they support constant-time access to ordinals for the document.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class RandomAccessOrds : SortedSetDocValues
Constructors
Name | Description |
---|---|
RandomAccessOrds() | Sole constructor. (For invocation by subclass constructors, typically implicit.) |
Methods
Name | Description |
---|---|
Cardinality() | Returns the cardinality for the current document (previously set by SetDocument(Int32). |
OrdAt(Int32) | Retrieve the ordinal for the current document (previously set by SetDocument(Int32) at the specified index.
An index ranges from |