[Xapian-tickets] [Xapian] #352: Weight::init() vs PostingSource::reset()
Xapian
nobody at xapian.org
Mon Mar 23 09:11:58 GMT 2009
#352: Weight::init() vs PostingSource::reset()
-------------------------+--------------------------------------------------
Reporter: olly | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone: 1.1.0
Component: Library API | Version: SVN trunk
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking:
-------------------------+--------------------------------------------------
Comment(by richard):
I just mentioned that changing reset to init would involve chasing down a
few references as a "tie-breaker" for the decision. On reflection,
though, I think that init is indeed a clearer name.
For posting sources, if they don't implement clone(), re-using a posting
source will result in init() being called twice. This should be fine, but
we should mention in the documentation for the PostingSource::init()
method that this is a possibility, and that implementations should cope
with it.
--
Ticket URL: <http://trac.xapian.org/ticket/352#comment:1>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list