Class XmiDataInserter


  • public class XmiDataInserter
    extends Object
    • Constructor Detail

      • XmiDataInserter

        public XmiDataInserter​(Set<String> annotationModuleColumnNames,
                               de.julielab.costosys.dbconnection.DataBaseConnector dbc,
                               String schemaDocument,
                               Boolean storeAll,
                               Boolean updateMode,
                               String componentDbName,
                               String hashColumnName)
    • 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 is 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).
        Parameters:
        annotationModules -
        mirrorResetIds -
        unchangedDocuments -
        deleteObsolete -
        shaMap -
        Throws:
        XmiDataInsertionException
        org.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)