lookup

package
v2.23.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LookupNACode   = 0
	LookupAggrCode = 1
)

Variables

This section is empty.

Functions

func NewLookupFromSchema

func NewLookupFromSchema(fieldSchema *schema.Field) *lookup

Types

type LookupSet

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

func NewLookupSetFromSchema

func NewLookupSetFromSchema(dimensions []*schema.Field) *LookupSet

func (*LookupSet) Len

func (s *LookupSet) Len() int

func (*LookupSet) LookupBytes

func (s *LookupSet) LookupBytes(lookupIndex schema.FieldIndex, k []byte) (int, error)

func (*LookupSet) LookupCode

func (s *LookupSet) LookupCode(lookupIndex schema.FieldIndex, k int) (string, error)

func (*LookupSet) Name

func (s *LookupSet) Name(lookupIndex schema.FieldIndex) (string, error)

type Lookuper

type Lookuper interface {
	Name() string
	LookupBytes([]byte) int
	LookupCode(int) (string, error)
}

Jump to

Keyboard shortcuts

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