Documentation ¶
Index ¶
- Constants
- Variables
- type DictionaryField
- func (t *DictionaryField) AddTotal(total int)
- func (t *DictionaryField) Cardinality() uint64
- func (t *DictionaryField) CumulativeTotal() uint64
- func (t *DictionaryField) IndexType() arrow.DataType
- func (t *DictionaryField) Path() string
- func (t *DictionaryField) RevertCounters()
- func (t *DictionaryField) SetCardinality(card uint64, stats *stats.RecordBuilderStats)
- func (t *DictionaryField) Transform(field *arrow.Field) *arrow.Field
- type IdentityField
- type NoField
Constants ¶
View Source
const DictIdKey = "dictId"
Variables ¶
View Source
var ( AllIndexTypes = []arrow.DataType{arrow.PrimitiveTypes.Uint8, arrow.PrimitiveTypes.Uint16, arrow.PrimitiveTypes.Uint32, arrow.PrimitiveTypes.Uint64} AllIndexMaxCard = []uint64{math.MaxUint8, math.MaxUint16, math.MaxUint32, math.MaxUint64} )
Functions ¶
This section is empty.
Types ¶
type DictionaryField ¶
type DictionaryField struct { // Dictionary ID DictID string // contains filtered or unexported fields }
DictionaryField is a FieldTransform that transforms dictionary fields to a given index type. If the index type is nil, the dictionary is downgraded to its value type.
func NewDictionaryField ¶
func NewDictionaryField( path string, dictID string, config *cfg.Dictionary, schemaUpdateRequest *update.SchemaUpdateRequest, events *events.Events, ) *DictionaryField
func (*DictionaryField) AddTotal ¶
func (t *DictionaryField) AddTotal(total int)
func (*DictionaryField) Cardinality ¶
func (t *DictionaryField) Cardinality() uint64
Cardinality returns the cardinality of the dictionary field.
func (*DictionaryField) CumulativeTotal ¶
func (t *DictionaryField) CumulativeTotal() uint64
CumulativeTotal returns the number of values inserted in the corresponding column since its creation.
func (*DictionaryField) IndexType ¶
func (t *DictionaryField) IndexType() arrow.DataType
IndexType returns the index type of the column.
func (*DictionaryField) Path ¶ added in v0.7.0
func (t *DictionaryField) Path() string
Path returns the path of the dictionary field.
func (*DictionaryField) RevertCounters ¶
func (t *DictionaryField) RevertCounters()
RevertCounters resets the cumulative total to the previous cumulative total.
func (*DictionaryField) SetCardinality ¶
func (t *DictionaryField) SetCardinality(card uint64, stats *stats.RecordBuilderStats)
type IdentityField ¶
type IdentityField struct {
// contains filtered or unexported fields
}
IdentityField is a FieldTransform that returns a copy of the field.
func NewIdentityField ¶ added in v0.7.0
func NewIdentityField(path string) *IdentityField
func (*IdentityField) Path ¶ added in v0.7.0
func (t *IdentityField) Path() string
func (*IdentityField) RevertCounters ¶
func (t *IdentityField) RevertCounters()
type NoField ¶
type NoField struct{}
NoField is a FieldTransform that returns nil, so in practice it removes the field.
func (*NoField) RevertCounters ¶
func (t *NoField) RevertCounters()
Click to show internal directories.
Click to hide internal directories.