[TR-66] TRECQuery needs refactored Created: 08/Oct/09 Updated: 05/Mar/10 Resolved: 23/Nov/09
|Reporter:||Craig Macdonald||Assignee:||Craig Macdonald|
TRECQuery is the class responsible for extracting queries from a TREC topics file.
It also has a sub-class called SingleLineTRECQuery for topics files in a different format.
Both files assumes that all the queries from the files can be loaded in memory.
However, for processing queries from a large query log, this seems unlikely.
TRECQuery should be refactored, (and probably moved out of the structures package, where it doesn't belong). It should probably represent some Iterator interface instead.
|Comment by Craig Macdonald [ 08/Oct/09 ]|
question: interface or abstract class?
|Comment by Craig Macdonald [ 23/Nov/09 ]|
Resolved. Added a QuerySource interface in TRECQuerying. Refactored TRECQuery to use interface, and deprecated older methods.