indexes

package
v0.0.0-...-b19370d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBTreeIndex

func NewBTreeIndex(name, tableName string, unique bool, expressions []impls.ExpressionWithDirection) impls.Index[BtreeIndexScanOptions]

func NewHashIndex

func NewHashIndex(name, tableName string, expression impls.Expression) impls.Index[HashIndexScanOptions]

func NewPartialIndex

func NewPartialIndex[O impls.ScanOptions](index impls.Index[O], condition impls.Expression) *partialIndex[O]

Types

type BtreeIndexScanOptions

type BtreeIndexScanOptions struct {
	// contains filtered or unexported fields
}

func CanSelectBtreeIndex

func CanSelectBtreeIndex(
	index impls.BaseIndex,
	filterExpression impls.Expression,
	order impls.OrderExpression,
) (_ impls.Index[BtreeIndexScanOptions], opts BtreeIndexScanOptions, _ bool)

func NewBtreeSearchOptions

func NewBtreeSearchOptions(values []any) BtreeIndexScanOptions

type HashIndexScanOptions

type HashIndexScanOptions struct {
	// contains filtered or unexported fields
}

func CanSelectHashIndex

func CanSelectHashIndex(
	index impls.BaseIndex,
	filterExpression impls.Expression,
) (_ impls.Index[HashIndexScanOptions], opts HashIndexScanOptions, _ bool)

type ScanDirection

type ScanDirection int
const (
	ScanDirectionUnknown ScanDirection = iota
	ScanDirectionForward
	ScanDirectionBackward
)

Jump to

Keyboard shortcuts

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