public static final class DirectoryTaxonomyWriter.DiskOrdinalMap extends Object implements DirectoryTaxonomyWriter.OrdinalMap
DirectoryTaxonomyWriter.OrdinalMap
maintained on file systemConstructor and Description |
---|
DirectoryTaxonomyWriter.DiskOrdinalMap(File tmpfile) |
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.DiskOrdinalMap(File tmpfile) throws FileNotFoundException
FileNotFoundException
public void addMapping(int origOrdinal, int newOrdinal) throws IOException
addMapping
in interface DirectoryTaxonomyWriter.OrdinalMap
IOException
public void setSize(int taxonomySize) throws IOException
DirectoryTaxonomyWriter.OrdinalMap
setSize
in interface DirectoryTaxonomyWriter.OrdinalMap
IOException
public void addDone() throws IOException
DirectoryTaxonomyWriter.OrdinalMap
addDone
in interface DirectoryTaxonomyWriter.OrdinalMap
IOException
public int[] getMap() throws IOException
DirectoryTaxonomyWriter.OrdinalMap
getMap
in interface DirectoryTaxonomyWriter.OrdinalMap
IOException