Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RBNode ¶
type RBNode struct {
// contains filtered or unexported fields
}
RBNode is a RBTree node
type RBTree ¶
type RBTree struct {
// contains filtered or unexported fields
}
RBTree implements a non-thread safe fixed size Red, Black tree
func (*RBTree) Delete ¶
Delete removes the entry for key from the redBlackTree. Returns true on successful deletion, false if the key is not in tree
func (*RBTree) Insert ¶
Insert inserts a value and string into the tree Returns true on insertion and false if a duplicate exists
func (*RBTree) LookupNUniqueAt ¶
LookupNUniqueAt iterates through the tree from the last node that is smaller than key or equal, and returns the next n unique values.
Click to show internal directories.
Click to hide internal directories.