Documentation ¶
Index ¶
- type DimensionField
- type DimensionTransformFunction
- type Field
- type FieldIndex
- type FieldOption
- type FieldType
- type Schema
- func (s *Schema) Dimension(i int) *Field
- func (s *Schema) DimensionKeyPartSizes() []int
- func (s *Schema) Dimensions() []*Field
- func (s *Schema) Field(i int) *Field
- func (s *Schema) Fields() []*Field
- func (s *Schema) KeySize() int
- func (s *Schema) Metric(i int) *Field
- func (s *Schema) Metrics() []*Field
- func (s *Schema) NumDimensions() int
- func (s *Schema) NumMetrics() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DimensionField ¶
type DimensionField struct { KeyBitSize int KeyBitPositionInCompoundKey int MaxDimensionSetSize uint32 Transform *DimensionTransformFunction CollapsingLevel *limits.CollapsingLevel }
DimensionField defines dimension field specific information KeyBitSize specifies the size of the key which will be used in the staging table to represent dimension value MaxDimensionSetSize specifies max unique dimension which will be stored in staging table
if max size will be reaches all new unique dimensions will be transformed to AGGR value
type Field ¶
type Field struct { Name string Type FieldType DimensionField // contains filtered or unexported fields }
Field defines attributes of input field for StagingTable
func NewDimensionField ¶
func NewDimensionField(name string, maxDimensionSetSize uint32, opts ...FieldOption) *Field
func NewMetricField ¶
func (*Field) Index ¶
func (f *Field) Index() FieldIndex
func (*Field) ShouldCollapse ¶
func (f *Field) ShouldCollapse(level limits.CollapsingLevel) bool
type FieldIndex ¶
type FieldIndex = int
type FieldOption ¶
type FieldOption func(f *Field)
func WithKeyBitSize ¶
func WithKeyBitSize(keyBitSize int) FieldOption
func WithLevel ¶
func WithLevel(level limits.CollapsingLevel) FieldOption
func WithTransformFunction ¶
func WithTransformFunction(t *DimensionTransformFunction) FieldOption
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) DimensionKeyPartSizes ¶
func (*Schema) Dimensions ¶
func (*Schema) NumDimensions ¶
func (*Schema) NumMetrics ¶
Click to show internal directories.
Click to hide internal directories.