Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionary ¶
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.
Click to show internal directories.
Click to hide internal directories.