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 LabelToIdWriter
public void commit()
public void close()
LabelToIdWriter
close
in interface LabelToIdWriter
Copyright © 2013. All rights reserved.