![]() |
Smalltalk/X WebserverDocumentation of class 'TSTree': |
|
Class: TSTreeInheritance:Object | +--Collection | +--KeyedCollection | +--TSTree | +--TSMultiTree
Description:BTree and TSTree A bunch of collection classes that are useful for building large indices of things. It's especially geared towards people using OODBs like GOODS, but can be used it in the image too: the BTree class is great for when you need to select numeric keys by range, and TSTree makes a solid basis for full-text search. TreeSet has an interesting optimized #intersection: that lets you compare two collections without looking at every item of either. TSTree has similar properties as BTree for String keys. So as well as keeping them sorted, you can do efficient lookups of all the keys with a given prefix. One other neat trick TSTree can do is a certain amount of fuzzy matching (eg find all keys with an edit distance of 3 from 'foo') which makes it especially useful for spell checking and similar applications. [license:] Dual licensed under both SqueakL and MIT. This enables both base Squeak inclusion and 100% reuse. Class protocol:queriesInstance protocol:accessing
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 04 Jun 2023 07:07:45 GMT
|