public class XmiDataInserter extends Object
| Constructor and Description |
|---|
XmiDataInserter(List<String> annotationsToStore,
String effectiveDocTableName,
de.julielab.xmlData.dataBase.DataBaseConnector dbc,
String schemaDocument,
String schemaAnnotation,
Boolean storeAll,
Boolean storeBaseDocument,
Boolean updateMode,
String componentDbName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessedDocumentId(DocumentId docId) |
void |
putXmiIdMapping(DocumentId docId,
Integer newXmiId) |
void |
sendXmiDataToDatabase(LinkedHashMap<String,List<XmiData>> serializedCASes,
Map<String,List<DocumentId>> tablesWithoutData,
String subsetTableName)
Constructs row iterators for the different tables (document and
annotations) conforming to the expectations of the DataBaseConnector API.
|
void |
updateMaxXmiId(Connection conn)
Stores the next possible xmi id that can be assigned to new annotations
in order to make sure that there aren't any clashes with already existing
ids.
|
public void sendXmiDataToDatabase(LinkedHashMap<String,List<XmiData>> serializedCASes, Map<String,List<DocumentId>> tablesWithoutData, String subsetTableName) throws XmiDataInsertionException
true, the CAS data will be added as an
update. It will just be inserted otherwise (throwing an error if there
will be a primary key constraint violation, i.e. duplicates).serializedCASes - tablesWithoutData - XmiDataInsertionExceptionorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic void updateMaxXmiId(Connection conn) throws XmiDataInsertionException
XmiDataInsertionExceptionorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic void putXmiIdMapping(DocumentId docId, Integer newXmiId)
public void addProcessedDocumentId(DocumentId docId)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.