package bloom
import "github.com/parquet-go/parquet-go/bloom/xxhash"
type Hash interface {
Sum64 (value []byte ) uint64
Sum64Uint8 (value uint8 ) uint64
Sum64Uint16 (value uint16 ) uint64
Sum64Uint32 (value uint32 ) uint64
Sum64Uint64 (value uint64 ) uint64
Sum64Uint128 (value [16 ]byte ) uint64
MultiSum64Uint8 (dst []uint64 , src []uint8 ) int
MultiSum64Uint16 (dst []uint64 , src []uint16 ) int
MultiSum64Uint32 (dst []uint64 , src []uint32 ) int
MultiSum64Uint64 (dst []uint64 , src []uint64 ) int
MultiSum64Uint128 (dst []uint64 , src [][16 ]byte ) int
}
type XXH64 struct {}
func (XXH64 ) Sum64 (b []byte ) uint64 {
return xxhash .Sum64 (b )
}
func (XXH64 ) Sum64Uint8 (v uint8 ) uint64 {
return xxhash .Sum64Uint8 (v )
}
func (XXH64 ) Sum64Uint16 (v uint16 ) uint64 {
return xxhash .Sum64Uint16 (v )
}
func (XXH64 ) Sum64Uint32 (v uint32 ) uint64 {
return xxhash .Sum64Uint32 (v )
}
func (XXH64 ) Sum64Uint64 (v uint64 ) uint64 {
return xxhash .Sum64Uint64 (v )
}
func (XXH64 ) Sum64Uint128 (v [16 ]byte ) uint64 {
return xxhash .Sum64Uint128 (v )
}
func (XXH64 ) MultiSum64Uint8 (h []uint64 , v []uint8 ) int {
return xxhash .MultiSum64Uint8 (h , v )
}
func (XXH64 ) MultiSum64Uint16 (h []uint64 , v []uint16 ) int {
return xxhash .MultiSum64Uint16 (h , v )
}
func (XXH64 ) MultiSum64Uint32 (h []uint64 , v []uint32 ) int {
return xxhash .MultiSum64Uint32 (h , v )
}
func (XXH64 ) MultiSum64Uint64 (h []uint64 , v []uint64 ) int {
return xxhash .MultiSum64Uint64 (h , v )
}
func (XXH64 ) MultiSum64Uint128 (h []uint64 , v [][16 ]byte ) int {
return xxhash .MultiSum64Uint128 (h , v )
}
var (
_ Hash = XXH64 {}
)
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .