public static final class DirectoryTaxonomyWriter.MemoryOrdinalMap extends Object implements DirectoryTaxonomyWriter.OrdinalMap
DirectoryTaxonomyWriter.OrdinalMap
maintained in memoryConstructor and Description |
---|
DirectoryTaxonomyWriter.MemoryOrdinalMap() |
Modifier and Type | Method and Description |
---|---|
void |
addDone()
Call addDone() to say that all addMapping() have been done.
|
void |
addMapping(int origOrdinal,
int newOrdinal) |
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 DirectoryTaxonomyWriter.MemoryOrdinalMap()
public void setSize(int taxonomySize)
DirectoryTaxonomyWriter.OrdinalMap
setSize
in interface DirectoryTaxonomyWriter.OrdinalMap
public void addMapping(int origOrdinal, int newOrdinal)
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