Skip to content

Commit

Permalink
api-change: trie: remove Trie
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Nov 21, 2020
1 parent 34a4822 commit 4fa4a37
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 1,251 deletions.
4 changes: 0 additions & 4 deletions docs/README.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,8 @@ memory, as a minimized index of huge amount external data.


<!-- TODO array -->

<!-- TODO list data types -->
<!-- TODO other data types -->

<!-- TODO toc -->

<!-- TODO add FPR benchmark -->

## Memory overhead
Expand Down
14 changes: 0 additions & 14 deletions trie/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@ package trie
import "errors"

var (
// ErrTooManyTrieNodes indicates the number of trie nodes(not number of
// keys) exceeded.
ErrTooManyTrieNodes = errors.New("exceeds max node count=2^31-1")

// ErrTrieBranchValueOverflow indicate input key consists of a word greater
// than the max 4-bit word(0x0f).
ErrTrieBranchValueOverflow = errors.New("branch value must <=0x0f")

// ErrDuplicateKeys indicates two keys are identical.
ErrDuplicateKeys = errors.New("keys can not be duplicate")

// ErrKVLenNotMatch means the keys and values to create Trie has different
// number of elements.
ErrKVLenNotMatch = errors.New("length of keys and values not equal")

// ErrKeyOutOfOrder means keys to create Trie are not ascendingly ordered.
ErrKeyOutOfOrder = errors.New("keys not ascending sorted")
Expand Down
36 changes: 0 additions & 36 deletions trie/example_trie_tostring_test.go

This file was deleted.

5 changes: 0 additions & 5 deletions trie/slimtrie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ import (
"github.com/golang/protobuf/proto"
"github.com/kr/pretty"
"github.com/openacid/errors"
"github.com/openacid/low/bitword"
"github.com/openacid/slim/encode"
"github.com/openacid/testkeys"
"github.com/stretchr/testify/require"
)

var (
bw4 = bitword.BitWord[4]
)

type searchRst struct {
lVal interface{}
eqVal interface{}
Expand Down
Loading

0 comments on commit 4fa4a37

Please sign in to comment.