public class TextAnnotationDBHandler extends Object implements TextAnnotationCache
Constructor and Description |
---|
TextAnnotationDBHandler(String dbFile,
String[] datasetNames) |
Modifier and Type | Method and Description |
---|---|
void |
addTextAnnotation(String dataset,
TextAnnotation ta) |
boolean |
contains(TextAnnotation ta) |
IResetableIterator<TextAnnotation> |
getDataset(String dataset) |
TextAnnotation |
getTextAnnotation(TextAnnotation ta) |
void |
initializeDatasets(String dbFile) |
void |
removeTextAnnotation(TextAnnotation ta) |
void |
updateTextAnnotation(TextAnnotation ta) |
public void initializeDatasets(String dbFile)
public void addTextAnnotation(String dataset, TextAnnotation ta)
addTextAnnotation
in interface TextAnnotationCache
public void updateTextAnnotation(TextAnnotation ta)
updateTextAnnotation
in interface TextAnnotationCache
public IResetableIterator<TextAnnotation> getDataset(String dataset)
getDataset
in interface TextAnnotationCache
public boolean contains(TextAnnotation ta)
contains
in interface TextAnnotationCache
public void removeTextAnnotation(TextAnnotation ta)
removeTextAnnotation
in interface TextAnnotationCache
public TextAnnotation getTextAnnotation(TextAnnotation ta)
getTextAnnotation
in interface TextAnnotationCache
Copyright © 2017. All rights reserved.