MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / Max

Method Max

internal/data/list.go:82–82  ·  view source on GitHub ↗

Max returns the item with the largest key (tail of the list). Returns the item and true if the list is not empty, nil and false otherwise.

()

Source from the content-addressed store, hash-verified

80 // Max returns the item with the largest key (tail of the list).
81 // Returns the item and true if the list is not empty, nil and false otherwise.
82 Max() (*core.Item[core.Record], bool)
83
84 // All returns all records in ascending key order.
85 All() []*core.Record

Callers 3

getMaxOrMinKeyMethod · 0.65
peekMethod · 0.65
GeneratePushKeyMethod · 0.65

Implementers 2

DoublyLinkedListinternal/data/doubly_linked_list.go
BTreeinternal/data/btree.go

Calls

no outgoing calls

Tested by

no test coverage detected