Package de.julielab.jcore.consumer.xmi
Class XmiDataInserter
- java.lang.Object
-
- de.julielab.jcore.consumer.xmi.XmiDataInserter
-
public class XmiDataInserter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_MAX_XMI_ID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProcessedDocumentId(de.julielab.jcore.ae.checkpoint.DocumentId docId)voidputXmiIdMapping(de.julielab.jcore.ae.checkpoint.DocumentId docId, Integer newXmiId)voidsendXmiDataToDatabase(String xmiTableName, List<XmiData> annotationModules, String subsetTableName, Set<de.julielab.jcore.ae.checkpoint.DocumentId> mirrorResetIds, Set<de.julielab.jcore.ae.checkpoint.DocumentId> unchangedDocuments, Boolean deleteObsolete, Map<de.julielab.jcore.ae.checkpoint.DocumentId,String> shaMap)Constructs row iterators for the different tables (document and annotations) conforming to the expectations of the DataBaseConnector API.
-
-
-
Field Detail
-
FIELD_MAX_XMI_ID
public static final String FIELD_MAX_XMI_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendXmiDataToDatabase
public void sendXmiDataToDatabase(String xmiTableName, List<XmiData> annotationModules, String subsetTableName, Set<de.julielab.jcore.ae.checkpoint.DocumentId> mirrorResetIds, Set<de.julielab.jcore.ae.checkpoint.DocumentId> unchangedDocuments, Boolean deleteObsolete, Map<de.julielab.jcore.ae.checkpoint.DocumentId,String> shaMap) throws XmiDataInsertionException
Constructs row iterators for the different tables (document and annotations) conforming to the expectations of the DataBaseConnector API. If update mode istrue, 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).- Parameters:
annotationModules-mirrorResetIds-unchangedDocuments-deleteObsolete-shaMap-- Throws:
XmiDataInsertionExceptionorg.apache.uima.analysis_engine.AnalysisEngineProcessException
-
putXmiIdMapping
public void putXmiIdMapping(de.julielab.jcore.ae.checkpoint.DocumentId docId, Integer newXmiId)
-
addProcessedDocumentId
public void addProcessedDocumentId(de.julielab.jcore.ae.checkpoint.DocumentId docId)
-
-