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

Method currentKey

segment.go:376–382  ·  view source on GitHub ↗

currentKey returns the array position and the key pointed to by the cursor.

()

Source from the content-addressed store, hash-verified

374
375// currentKey returns the array position and the key pointed to by the cursor.
376func (c *segmentCursor) currentKey() (idx int, key []byte) {
377 if c.curr >= c.start && c.curr < c.end {
378 idx = c.curr
379 _, key, _ = c.s.getOperationKeyVal(c.curr)
380 }
381 return
382}
383
384func (a *segment) Cursor(startKeyInclusive []byte, endKeyExclusive []byte) (
385 SegmentCursor, error) {

Callers 1

buildIndexMethod · 0.95

Calls 1

getOperationKeyValMethod · 0.80

Tested by

no test coverage detected