hwm

package
v1.0.0-rc5 Latest Latest
Warning

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

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

Documentation

Overview

The hwm package contains the HighWatermarkTracker;

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HighWatermarkTracker

type HighWatermarkTracker struct {
	// contains filtered or unexported fields
}

HighWatermarkTracker: map that tracks the highest value seen for each key. Supports temporary tracking of deletions in order to resolve concurrent updates.

func NewHighWatermarkTracker

func NewHighWatermarkTracker() *HighWatermarkTracker

func (*HighWatermarkTracker) DeleteOldKeys

func (trie *HighWatermarkTracker) DeleteOldKeys(hwmLimit uint64) []string

func (*HighWatermarkTracker) StartTrackingDeletions

func (trie *HighWatermarkTracker) StartTrackingDeletions()

func (*HighWatermarkTracker) StopTrackingDeletions

func (trie *HighWatermarkTracker) StopTrackingDeletions()

func (*HighWatermarkTracker) StoreDeletion

func (trie *HighWatermarkTracker) StoreDeletion(key string, newModIdx uint64) []string

func (*HighWatermarkTracker) StoreUpdate

func (trie *HighWatermarkTracker) StoreUpdate(key string, newModIdx uint64) (oldModIdx uint64)

func (*HighWatermarkTracker) ToMap

func (trie *HighWatermarkTracker) ToMap() map[string]uint64

Jump to

Keyboard shortcuts

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