Documentation ¶
Index ¶
- Variables
- func AcquireBitmap() *roaring.Bitmap
- func AcquireBuf() *bytes.Buffer
- func BMAlloc(new *roaring.Bitmap, shards ...*roaring.Bitmap)
- func BMAnd(bms ...*roaring.Bitmap) *roaring.Bitmap
- func BMAndInterface(bms ...interface{}) *roaring.Bitmap
- func BMAndnot(bms ...*roaring.Bitmap) *roaring.Bitmap
- func BMAndnotInterface(bms ...interface{}) *roaring.Bitmap
- func BMMinus(bm1, bm2 *roaring.Bitmap) *roaring.Bitmap
- func BMOr(bms ...*roaring.Bitmap) *roaring.Bitmap
- func BMOrInterface(bms ...interface{}) *roaring.Bitmap
- func BMRemove(bm1, bm2 *roaring.Bitmap)
- func BMSplit(bm *roaring.Bitmap, maxSize uint64) []*roaring.Bitmap
- func BMXOr(bms ...*roaring.Bitmap) *roaring.Bitmap
- func BMXOrInterface(bms ...interface{}) *roaring.Bitmap
- func ExtractJSONField(src []byte, paths ...string) []byte
- func MustMarshalBM(bm *roaring.Bitmap) []byte
- func MustParseBM(data []byte) *roaring.Bitmap
- func MustParseBMTo(data []byte, bm *roaring.Bitmap)
- func PrintVersion()
- func ReleaseBuf(value *bytes.Buffer)
- type BSI
- type Cache
- type Key
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GitCommit = "" BuildTime = "" GoVersion = "" Version = "" )
set on build time
Functions ¶
func BMAndInterface ¶
BMAndInterface bm and using interface{}
func BMAndnotInterface ¶
BMAndnotInterface bitmap andnot using interface{}
func BMOrInterface ¶
BMOrInterface bitmap or using interface{}
func BMXOrInterface ¶
BMXOrInterface bitmap xor using interface{}
func ExtractJSONField ¶
ExtractJSONField returns the field value in the json
func MustParseBMTo ¶
MustParseBMTo parse a bitmap
Types ¶
type Cache ¶
type Cache struct { sync.RWMutex // MaxBytes is the maximum bytes of cache entries before // an item is evicted. Zero means no limit. MaxBytes uint64 // OnEvicted optionally specificies a callback function to be // executed when an entry is purged from the cache. OnEvicted func(key Key, value interface{}) // contains filtered or unexported fields }
Cache is an LRU cache.
func NewLRUCache ¶
NewLRUCache creates a new Cache. If maxBytes is zero, the cache has no limit and it's assumed that eviction is done by the caller.
type Key ¶
type Key interface{}
A Key may be any value that is comparable. See http://golang.org/ref/spec#Comparison_operators
Click to show internal directories.
Click to hide internal directories.