Skip to content

API change in SesameVirtualRepo and QuestDBVirtualStore

Dag Hovland edited this page Jul 19, 2014 · 2 revisions

This page describes a change that is not yet released.

The api's of SesameVirtualRepo and QuestDBVirtualStore are changing these days. After calling the constructor of any of these classes, and before calling getQuestConnection it is necessary to call initialize once. If you are a programmer directed to this page from an error-message, all you need to do is add such a call to initialize. Note that the call to initialize must come after any calls to setter-methods on the object.

Rationale

Previously, the constructors of theses classes were indirectly calling Quest.setupRepository. This meant that information about the repository could only be given through the constructors. At a point the number of constructors grew unwieldy and we wanted to use setter-methods for some of the information in stead. This was only possible if the call to Quest.setupRepository was removed from the constructors. We chose to put this call in a new initialize method rather than indirectly at the first query, since the first query would then just appear to be extremely slow. (In special cases it can take upto several minutes to initialize the repository)

Clone this wiki locally