builder

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 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 Dictionary

type Dictionary struct {
	MinCard        uint64
	MaxCard        uint64
	ResetThreshold float64
}

Dictionary is a configuration for a dictionary field. The MaxCard is the maximum cardinality of the dictionary field. If the cardinality of the dictionary field is higher than MaxCard, then the dictionary field will be automatically converted to its base type.

if MaxCard is equal to 0, then the dictionary field will be converted to its base type no matter what.

func NewDictionary

func NewDictionary(maxCard uint64, resetThreshold float64) *Dictionary

NewDictionary creates a new dictionary configuration with the given maximum cardinality.

func NewDictionaryFrom

func NewDictionaryFrom(minCard uint64, dicProto *Dictionary) *Dictionary

NewDictionaryFrom creates a new dictionary configuration from a prototype dictionary configuration with the given minimum cardinality.

Jump to

Keyboard shortcuts

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