Class MultiDocValues.OrdinalMap
maps per-segment ordinals to/from global ordinal space
Inheritance
System.Object
MultiDocValues.OrdinalMap
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class OrdinalMap : object
Constructors
| Improve this Doc View SourceOrdinalMap(Object, TermsEnum[])
Creates an ordinal map that allows mapping ords to/from a merged
space from subs
.
Declaration
public OrdinalMap(object owner, TermsEnum[] subs)
Parameters
Type | Name | Description |
---|---|---|
System. |
owner | a cache key |
Terms |
subs | Terms |
Properties
| Improve this Doc View SourceValueCount
Returns the total number of unique terms in global ord space.
Declaration
public virtual long ValueCount { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceGetFirstSegmentNumber(Int64)
Given a global ordinal, returns the index of the first segment that contains this term.
Declaration
public virtual int GetFirstSegmentNumber(long globalOrd)
Parameters
Type | Name | Description |
---|---|---|
System. |
globalOrd |
Returns
Type | Description |
---|---|
System. |
GetFirstSegmentOrd(Int64)
Given global ordinal, returns the ordinal of the first segment which contains
this ordinal (the corresponding to the segment return Get
Declaration
public virtual long GetFirstSegmentOrd(long globalOrd)
Parameters
Type | Name | Description |
---|---|---|
System. |
globalOrd |
Returns
Type | Description |
---|---|
System. |
GetGlobalOrd(Int32, Int64)
Given a segment number and segment ordinal, returns the corresponding global ordinal.
Declaration
public virtual long GetGlobalOrd(int segmentIndex, long segmentOrd)
Parameters
Type | Name | Description |
---|---|---|
System. |
segmentIndex | |
System. |
segmentOrd |
Returns
Type | Description |
---|---|
System. |
RamBytesUsed()
Returns total byte size used by this ordinal map.
Declaration
public virtual long RamBytesUsed()
Returns
Type | Description |
---|---|
System. |