public static final class DirectoryTaxonomyWriter.MemoryOrdinalMap extends Object implements DirectoryTaxonomyWriter.OrdinalMap
DirectoryTaxonomyWriter.OrdinalMap
maintained in memoryConstructor and Description |
---|
MemoryOrdinalMap()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDone()
Call addDone() to say that all addMapping() have been done.
|
void |
addMapping(int origOrdinal,
int newOrdinal)
Record a mapping.
|
int[] |
getMap()
Return the map from the taxonomy's original (consecutive) ordinals
to the new taxonomy's ordinals.
|
void |
setSize(int taxonomySize)
Set the size of the map.
|
public void setSize(int taxonomySize)
DirectoryTaxonomyWriter.OrdinalMap
setSize
in interface DirectoryTaxonomyWriter.OrdinalMap
public void addMapping(int origOrdinal, int newOrdinal)
DirectoryTaxonomyWriter.OrdinalMap
addMapping
in interface DirectoryTaxonomyWriter.OrdinalMap
public void addDone()
DirectoryTaxonomyWriter.OrdinalMap
addDone
in interface DirectoryTaxonomyWriter.OrdinalMap
public int[] getMap()
DirectoryTaxonomyWriter.OrdinalMap
getMap
in interface DirectoryTaxonomyWriter.OrdinalMap
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.