From f45f307a647773f9489a8737e1ba796b36e8332c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 17 Jan 2019 09:59:03 +0100 Subject: ... --- internal/hash/hash.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/internal/hash/hash.go b/internal/hash/hash.go index 8662817..861dd90 100644 --- a/internal/hash/hash.go +++ b/internal/hash/hash.go @@ -8,14 +8,18 @@ const ( ) type Hash struct { - file *os.File - hash func([]byte) uint32 + file *os.File + BSize uint // hash table bucket size + FFactor uint // desired density within the hash table + CacheSize uint // suggested maximum size in bytes + LOrder uint // byte order for integers in metadata + Hash func([]byte) uint32 // user defined hash function } func New(file *os.File) *Hash { return &Hash{ file: file, - hash: defaultHash, + Hash: defaultHash, } } -- cgit v1.2.3