public class MapDBLabelToId extends Object implements LabelToId, LabelToIdWriter
| Modifier and Type | Method and Description |
|---|---|
void |
add(String label,
int key)
Adds the mapping
label -> id |
void |
close()
Closes the writer
|
void |
commit() |
Integer |
getId(String label) |
static MapDBLabelToId |
getInstance() |
public static MapDBLabelToId getInstance()
public void add(String label, int key)
LabelToIdWriter label -> id add in interface LabelToIdWriterpublic void commit()
public void close()
LabelToIdWriterclose in interface LabelToIdWriterCopyright © 2013. All rights reserved.