SectionedResults

public struct SectionedResults<Key, SectionElement> : SectionedResultImpl where Key : _Persistable, Key : Hashable, SectionElement : RealmCollectionValue
extension SectionedResults: RealmSubscribable

SectionedResults 是一个类型安全的collection,其中包含单个ResultsSection作为其元素。container是延迟评估的,这意味着如果底层collection发生更改,则会对部分键进行完全重新计算。可以观察SectionedResults实例,并且它也符合ThreadConfined

分段结果