feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.1k stars 47 forks source link

Introduce a Moldable Lepiter Page Collection Wrapper #3755

Open onierstrasz opened 5 months ago

onierstrasz commented 5 months ago

Lepiter database queries return a collection or stream of pages. Instead we should wrap the result in a dedicated collection class (i.e., a Moldable Collection Wrapper) so that we can add dedicated views (e.g., visualizations or analyses of the contents of the pages).

onierstrasz commented 5 months ago

There already exist the classes LeCollection and LePages, but strangely these are not used to wrap the results of Spotter searchers. Should they?

onierstrasz commented 5 months ago

AC says: I do not think LePages is currently used. At one point we had some dedicated tools for exploring groups of pages, but seems we do not use them any more. LeSnippets is used within a page to store snippets. If you want to get custom objects from spotter searches I’d use typed streams instead of typed groups. We have TGtStreamGroup.