Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoarBitmap ¶
type RoarBitmap struct {
// contains filtered or unexported fields
}
RoarBitmap implements storage as a roaring bitmap in memory
func (*RoarBitmap) AddPassport ¶
func (sb *RoarBitmap) AddPassport(series uint16, number uint32) (bool, error)
AddPassport adds passport to storage
func (*RoarBitmap) CheckPassport ¶
func (sb *RoarBitmap) CheckPassport(series uint16, number uint32) (bool, error)
CheckPassport checks do passport exist in the storage if exists then true will be returned
func (*RoarBitmap) ImportData ¶
func (sb *RoarBitmap) ImportData(fileName string) error
ImportData return error because there is no standart import
type SparseBitmap ¶
type SparseBitmap struct {
// contains filtered or unexported fields
}
SparseBitmap implements storage as a sparse bitmap in memory
it require 9999 * (999999/64) * 8 ~ 1.25 Gb
func (*SparseBitmap) AddPassport ¶
func (sb *SparseBitmap) AddPassport(series uint16, number uint32) (bool, error)
AddPassport adds passport to storage
func (*SparseBitmap) CheckPassport ¶
func (sb *SparseBitmap) CheckPassport(series uint16, number uint32) (bool, error)
CheckPassport checks do passport exist in the storage if exists then true will be returned
func (*SparseBitmap) ImportData ¶
func (sb *SparseBitmap) ImportData(fileName string) error
ImportData return error because there is no standart import
func (*SparseBitmap) Init ¶
func (sb *SparseBitmap) Init() error
Init initialize internal data matrix BitmapLengthNumber(rows) x BitmapLengthSeries (cols)
Click to show internal directories.
Click to hide internal directories.