typeconv

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatumVecCanonicalTypeFamily = types.Family(1000000)

DatumVecCanonicalTypeFamily is the "canonical" type family of all types that are physically represented by coldata.DatumVec.

View Source
var TypesSupportedNatively []*types.T

TypesSupportedNatively contains types that are supported natively by the vectorized engine.

Functions

func ToCanonicalTypeFamilies

func ToCanonicalTypeFamilies(typs []*types.T) []types.Family

ToCanonicalTypeFamilies converts typs to the corresponding canonical type families.

func TypeFamilyToCanonicalTypeFamily

func TypeFamilyToCanonicalTypeFamily(family types.Family) types.Family

TypeFamilyToCanonicalTypeFamily converts all type families to their "canonical" counterparts. "Canonical" type families are representatives from a set of "equivalent" type families where "equivalence" means having the same physical representation.

All type families that do not have an optimized physical representation are handled by using tree.Datums, and such types are mapped to DatumVecCanonicalTypeFamily.

func UnsafeFromGoType

func UnsafeFromGoType(v interface{}) *types.T

UnsafeFromGoType returns the type for a Go value, if applicable. Shouldn't be used at runtime. This method is unsafe because multiple logical types can be represented by the same physical type. Types that are backed by DatumVec are *not* supported by this function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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