Interface DirectoryTaxonomyWriter.IOrdinalMap
Mapping from old ordinal to new ordinals, used when merging indexes wit separate taxonomies.
Add
There exist two implementations of Directory
Namespace: Lucene.Net.Facet.Taxonomy.Directory
Assembly: Lucene.Net.Facet.dll
Syntax
public interface IOrdinalMap
Methods
| Improve this Doc View SourceAddDone()
Call Add
Declaration
void AddDone()
AddMapping(Int32, Int32)
Record a mapping.
Declaration
void AddMapping(int origOrdinal, int newOrdinal)
Parameters
Type | Name | Description |
---|---|---|
System. |
origOrdinal | |
System. |
newOrdinal |
GetMap()
Return the map from the taxonomy's original (consecutive) ordinals to the new taxonomy's ordinals. If the map has to be read from disk and ordered appropriately, it is done when getMap() is called. getMap() should only be called once, and only when the map is actually needed. Calling it will also free all resources that the map might be holding (such as temporary disk space), other than the returned int[].
Declaration
int[] GetMap()
Returns
Type | Description |
---|---|
System. |
SetSize(Int32)
Set the size of the map. This MUST be called before AddorigOrdinals
between 0
and size - 1.
Declaration
void SetSize(int taxonomySize)
Parameters
Type | Name | Description |
---|---|---|
System. |
taxonomySize |