MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / listNodeAtPivot

Method listNodeAtPivot

lists.go:314–329  ·  view source on GitHub ↗
(key string, pivot Value, side LSide)

Source from the content-addressed store, hash-verified

312}
313
314func (c Client) listNodeAtPivot(key string, pivot Value, side LSide) (node listNode, found bool, err error) {
315 node, found, err = c.listFindEnd(key, side)
316 for found {
317 if err != nil {
318 return
319 }
320
321 if node.value.Equals(ReturnValue{pivot.ToAV()}) {
322 return node, true, nil
323 }
324
325 node, found, err = c.listGetByAddress(key, node.next(side))
326 }
327
328 return node, false, nil
329}
330
331func (c Client) LLEN(key string) (length int64, err error) {
332 resp, err := c.ddbClient.GetItemRequest(&dynamodb.GetItemInput{

Callers 2

LINSERTMethod · 0.95
LREMMethod · 0.95

Calls 5

listFindEndMethod · 0.95
listGetByAddressMethod · 0.95
EqualsMethod · 0.80
nextMethod · 0.80
ToAVMethod · 0.65

Tested by

no test coverage detected