Class CollisionMap
HashMap to store colliding labels. See CompactLabelToOrdinal for details.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
CollisionMap
Inherited Members
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)
System.Object.ToString()
Namespace: Lucene.Net.Facet.Taxonomy.WriterCache
Assembly: Lucene.Net.Facet.dll
Syntax
public class CollisionMap
Properties
| Improve this Doc View SourceCapacity
How many slots are allocated.
Declaration
public virtual int Capacity { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Count
How many mappings.
Declaration
public virtual int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAddLabel(FacetLabel, Int32, Int32)
Add another mapping.
Declaration
public virtual int AddLabel(FacetLabel label, int hash, int cid)
Parameters
Type | Name | Description |
---|---|---|
FacetLabel | label | |
System.Int32 | hash | |
System.Int32 | cid |
Returns
Type | Description |
---|---|
System.Int32 |
AddLabelOffset(Int32, Int32, Int32)
This method does not check if the same value is already in the map because we pass in an char-array offset, so so we now that we're in resize-mode here.
Declaration
public virtual void AddLabelOffset(int hash, int offset, int cid)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | hash | |
System.Int32 | offset | |
System.Int32 | cid |
Get(FacetLabel, Int32)
Return the mapping, or INVALID_ORDINAL if the label isn't recognized.
Declaration
public virtual int Get(FacetLabel label, int hash)
Parameters
Type | Name | Description |
---|---|---|
FacetLabel | label | |
System.Int32 | hash |
Returns
Type | Description |
---|---|
System.Int32 |