bleve: github.com/blevesearch/bleve/numeric Index | Files

package numeric

import "github.com/blevesearch/bleve/numeric"

Index

Package Files

bin.go float.go prefix_coded.go

Constants

const ShiftStartInt64 byte = 0x20

func Deinterleave Uses

func Deinterleave(b uint64) uint64

Deinterleave the 32-bit value starting at position 0 to get the other 32-bit value, shift it by 1 first

func Float64ToInt64 Uses

func Float64ToInt64(f float64) int64

func Int64ToFloat64 Uses

func Int64ToFloat64(i int64) float64

func Interleave Uses

func Interleave(v1, v2 uint64) uint64

Interleave the first 32 bits of each uint64 apdated from org.apache.lucene.util.BitUtil which was adapted from: http://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN

func ValidPrefixCodedTerm Uses

func ValidPrefixCodedTerm(p string) (bool, int)

func ValidPrefixCodedTermBytes Uses

func ValidPrefixCodedTermBytes(p []byte) (bool, int)

type PrefixCoded Uses

type PrefixCoded []byte

PrefixCoded is a byte array encoding of 64-bit numeric values shifted by 0-63 bits

func MustNewPrefixCodedInt64 Uses

func MustNewPrefixCodedInt64(in int64, shift uint) PrefixCoded

func NewPrefixCodedInt64 Uses

func NewPrefixCodedInt64(in int64, shift uint) (PrefixCoded, error)

func (PrefixCoded) Int64 Uses

func (p PrefixCoded) Int64() (int64, error)

func (PrefixCoded) Shift Uses

func (p PrefixCoded) Shift() (uint, error)

Shift returns the number of bits shifted returns 0 if in uninitialized state

Package numeric imports 2 packages (graph) and is imported by 74 packages. Updated 2018-05-31. Refresh now. Tools for package owners.