MCPcopy Create free account
hub / github.com/couchbase/moss / Seek

Method Seek

segment.go:347–356  ·  view source on GitHub ↗
(startKeyInclusive []byte)

Source from the content-addressed store, hash-verified

345}
346
347func (c *segmentCursor) Seek(startKeyInclusive []byte) error {
348 c.curr = c.s.findStartKeyInclusivePos(startKeyInclusive)
349 if c.curr < c.start {
350 c.curr = c.start
351 }
352 if c.curr >= c.end {
353 return ErrIteratorDone
354 }
355 return nil
356}
357
358func (c *segmentCursor) Next() error {
359 c.curr++

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected