rangeindex

package
v0.0.0-...-bbf0bf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RangeIndex

type RangeIndex[T indexer.ValidType] struct {
	Metadata indexer.IndexMetadata[T] `json:"metadata"`
	Index    map[T]*roaring.Bitmap    `json:"index"`
}

func New

func New[T indexer.ValidType](columnName string) *RangeIndex[T]

func (*RangeIndex[T]) AddValue

func (i *RangeIndex[T]) AddValue(id string, value interface{}) bool

func (*RangeIndex[T]) Deserialize

func (i *RangeIndex[T]) Deserialize(data []byte) error

func (*RangeIndex[T]) GetColumnName

func (i *RangeIndex[T]) GetColumnName() string

func (*RangeIndex[T]) GetIndexType

func (i *RangeIndex[T]) GetIndexType() indexer.IndexType

func (*RangeIndex[T]) MarshalJSON

func (i *RangeIndex[T]) MarshalJSON() ([]byte, error)

func (*RangeIndex[T]) Search

func (i *RangeIndex[T]) Search(value interface{}) []uint32

type RangeIndexJSON

type RangeIndexJSON[T indexer.ValidType] struct {
	Metadata indexer.IndexMetadata[T] `json:"metadata"`
	Indexes  []RangeMapIdsJSON[T]     `json:"index"`
}

type RangeMapIdsJSON

type RangeMapIdsJSON[T indexer.ValidType] struct {
	Key T        `json:"key"`
	Ids []uint32 `json:"ids"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL