MCPcopy Create free account
hub / github.com/Permify/permify / HasNext

Method HasNext

pkg/database/iterators.go:106–109  ·  view source on GitHub ↗

HasNext checks if there is a next Tuple in either of the two TupleIterators.

()

Source from the content-addressed store, hash-verified

104
105// HasNext checks if there is a next Tuple in either of the two TupleIterators.
106func (i *UniqueAttributeIterator) HasNext() bool {
107 // If either iterator has a next Tuple, return true
108 return i.iterator1.HasNext() || i.iterator2.HasNext()
109}
110
111// GetNext returns the next unique Tuple from the two TupleIterators.
112func (i *UniqueAttributeIterator) GetNext() (*base.Attribute, bool) {

Callers 7

expandDirectCallMethod · 0.95
attributeEntranceMethod · 0.95
pathChainEntranceMethod · 0.95
checkDirectCallMethod · 0.95

Calls 1

HasNextMethod · 0.45

Tested by 2