sharding

package
v0.0.0-...-83edfdb Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShardExtractor

type ShardExtractor interface {
	ShardID(flowID string) (int, error)
	ShardCount() int
}

ShardExtractor maps graph IDs to shards

func NewFixedSizeExtractor

func NewFixedSizeExtractor(shardCount int) ShardExtractor

NewFixedSizeExtractor creates shard mapper with a fixed number of shards using modular arithmetic on the UUID 128-bit value

Jump to

Keyboard shortcuts

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