MCPcopy
hub / github.com/dgraph-io/dgraph / Save

Method Save

lex/lexer.go:109–111  ·  view source on GitHub ↗

Save returns the current position of the iterator which we can use for restoring later.

()

Source from the content-addressed store, hash-verified

107
108// Save returns the current position of the iterator which we can use for restoring later.
109func (p *ItemIterator) Save() int {
110 return p.idx
111}
112
113// Peek returns the next n items without consuming them.
114func (p *ItemIterator) Peek(num int) ([]Item, error) {

Callers 6

tryParseFacetItemFunction · 0.45
tryParseFacetListFunction · 0.45
validateEmptyBlockItemFunction · 0.45
SaveToStorageMethod · 0.45
overwriteSnapshotFunction · 0.45
TestCalculateSnapshotFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestCalculateSnapshotFunction · 0.36