partitioner

package
v0.0.0-...-ec26dd8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartitionMethod

type PartitionMethod int
const (
	PART_METHOD_NONE       PartitionMethod = iota // No partitioning
	PART_METHOD_TABLENAME                         // Table name based partitioning
	PART_METHOD_TXN                               // Transaction based partitioning
	PART_METHOD_TXN_BUCKET                        // Transaction based partitioning with buckets
)

func GetPartitionMethod

func GetPartitionMethod(name string) PartitionMethod

type Partitioner

type Partitioner struct {
	OutputChan chan *replication.WalMessage
	// contains filtered or unexported fields
}

func New

func New(shutdownHandler shutdown.ShutdownHandler,
	inputChan <-chan *replication.WalMessage,
	statsChan chan stats.Stat,
	partMethod PartitionMethod,
	buckets int,
) Partitioner

func (*Partitioner) Start

func (f *Partitioner) Start()

Jump to

Keyboard shortcuts

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