public static final class DirectoryTaxonomyWriter.DiskOrdinalMap extends Object implements DirectoryTaxonomyWriter.OrdinalMap
DirectoryTaxonomyWriter.OrdinalMap
maintained on file systemConstructor and Description |
---|
DiskOrdinalMap(Path tmpfile)
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 DiskOrdinalMap(Path tmpfile) throws IOException
IOException
public void addMapping(int origOrdinal, int newOrdinal) throws IOException
DirectoryTaxonomyWriter.OrdinalMap
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
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.