aggregatorshardhash

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatorShardHash

type AggregatorShardHash struct {
	SourceKeys       []string
	ShardCount       int
	Topic            string
	Connector        string
	ErrIfKeyNotFound bool
	EnablePackID     bool
	// contains filtered or unexported fields
}

AggregatorShardHash ... ShardCount is the power of 2, so that we can use bits to represent buckets. For example, 4 needs 2 bits to represent 3 bucket, so 00 to 11 are enough.

func (*AggregatorShardHash) Add

func (s *AggregatorShardHash) Add(log *protocol.Log, ctx map[string]interface{}) error

Add ...

func (*AggregatorShardHash) Description

func (*AggregatorShardHash) Description() string

Description ...

func (*AggregatorShardHash) Flush

func (s *AggregatorShardHash) Flush() []*protocol.LogGroup

func (*AggregatorShardHash) Init

func (*AggregatorShardHash) Reset

func (s *AggregatorShardHash) Reset()

Jump to

Keyboard shortcuts

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