Next: The bale.HaystackDocument Class
Up: The Haystack Data Model
Previous: The Promise Class
In the initial design of the Haystack data model we have made the
decision to include an interface for nodes that represent collections.
The only obvious use for this Straw class (aside from the
implicit typing information) is the ability to override certain
Straw functions to provide ordering. For example, in
Haystack, when a query is invoked a bale.QueryResult object
can be generated pointing at the Straws that satisfy the
query. What we note, however, is that query results are usually
ordered based on some relevance metric. In invoking the
getAllForwardObjects() for the
bale.QueryResult object, we want the ordering maintained.
This is achieved by overriding the getAllForwardObjects() to
order the data based on some other information (i.e. a list of results
and scores).
Copyright 1998, Eytan Adar (eytan@alum.mit.edu)