incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Wed, 13 Oct 2010 17:08:00 GMT
Space: Apache Connectors Framework (
Page: How to Write an Output Connector (

Comment added by Karl Wright:

The best answer I can give right at the moment is to look at what the web connector
does for tables.  You will find that it creates two of them.  Follow the
same conventions and you should be OK.  Naming is up to you, but obviously a good
practice is to use a prefix that is likely to keep your table name from colliding with other
tables from other connectors, or from future versions of the framework.  If or when
there is a ManifoldCF book, be assured that this topic will be covered in depth.\\

In reply to a comment by Farzad:
I'd like to create an output connector where I can detect duplicate files (documents) in the
repository.  My thought is to store a hashsum value for each document, SHA-512, and store
that in a table and set it as a primary key.  Subsequent insert with the same value would
be rejected indicating a duplicate.

I read connectors are allowed to have their own tables.  What would the table name be?  I
issue SQL over JDBC to modify table data?  How do you establish a connection to the db?  Any
other thoughts about my approach?


Change your notification preferences:

View raw message