snapshot

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Plugins contains registered snapshot reader plugins

Functions

func FilterRow

func FilterRow(input string, table string, params *config.TableParams) string

FilterRow returns the Filter query based for specified input

func ForceIndex

func ForceIndex(params *config.TableParams) string

ForceIndex returns the FORCE INDEX clause

Types

type Reader

type Reader interface {
	//End uninitializes snapshot reader
	End()

	//Pop pops record fetched by FetchNext
	//returns: primary key, partition key and encoded message
	Pop() (string, string, []byte, error)

	//FetchNext fetches the record from the source and encodes using encoder provided when reader created
	//This is a blocking method
	FetchNext() bool
}

Reader is our contract for snapshot reader

func Start

func Start(input string, svc string, cluster string, dbs string, table string, params *config.TableParams, enc encoder.Encoder, m *metrics.Snapshot) (Reader, error)

Start constructs new snapshot reader of specified type

type ReaderConstructor

ReaderConstructor initializes logger plugin

Jump to

Keyboard shortcuts

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