-
Notifications
You must be signed in to change notification settings - Fork 194
MatchListener
Yann Barraud edited this page Feb 3, 2014
·
1 revision
While running, Duke will call methods on all the registered MatchListeners. This can be used to implement your own code for making use of links found.
Duke comes with built-in listeners for writing results to a text file, an NTriples file or a JDBC database.
The first callback is startProcessing()
, which is called before processing begins.
Then, batchReady(size)
is called, to indicate that a new batch has been read from the datasource(s) and is ready for processing.
For each record there will either be one or more call to matches(...)
or matchesPerhaps(...)
, or there will be a single call to noMatchesFor(record)
.
Once the batch is finished, batchDone()
is called.
Finally, when there are no more records, endProcessing()
is called.