File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,17 @@ type Synonym interface {
244244 Size () int
245245}
246246
247+ // NestedSegment is an optional interface that a Segment may implement
248+ // to provide access to nested document relationships within that segment.
247249type NestedSegment interface {
248250 Segment
249-
251+ // Ancestors returns a slice of ancestor document IDs for the given document ID.
252+ // If the document has no ancestors or if the segment does not support nested documents,
253+ // an empty slice is returned.
250254 Ancestors (docID uint64 ) []uint64
255+
256+ // Descendants returns a slice of descendant document IDs for the given document ID.
257+ // If the document has no descendants or if the segment does not support nested documents,
258+ // an empty slice is returned.
259+ Descendants (docID uint64 ) []uint64
251260}
You can’t perform that action at this time.
0 commit comments