indexer

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexMetadata

type IndexMetadata[T ValidType] struct {
	CastType   reflect.Kind `json:"castType"`
	IndexType  IndexType    `json:"type"`
	ColumnName string       `json:"column"`
}

type IndexType

type IndexType string
const (
	TextInvertedIndex IndexType = "TEXT_INVERTED_INDEX"
	BitmapIndex       IndexType = "BITMAP_INDEX"
	RangeIndex        IndexType = "RANGE_INDEX"
	SortedIndex       IndexType = "SORTED_INDEX"
	GeospatialIndex   IndexType = "GEOSPATIAL_INDEX"
)

type Indexer

type Indexer interface {
	GetColumnName() string
	GetIndexType() IndexType
	AddValue(id string, value interface{}) bool
	Search(value interface{}) []uint32
	// SearchRange(from, to interface{}) []uint32
	Deserialize(data []byte) error
}

type ValidType

type ValidType interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~float32 | ~float64 | ~string
}

Directories

Path Synopsis
inverted

Jump to

Keyboard shortcuts

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