extractor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Factable CommonConfig `group:"Factable" namespace:"factable"`

	runconsumer.BaseConfig
}

Config utilized by Extractor.

type Extractor

type Extractor struct {
	Extractors factable.ExtractFns
	// contains filtered or unexported fields
}

Extractor is a runconsumer.Application which extracts and locally combines relation DeltaEvents from events of an input journal.

func (*Extractor) BeginTxn

func (ext *Extractor) BeginTxn(shard consumer.Shard, store consumer.Store) error

func (*Extractor) ConsumeMessage

func (*Extractor) ConsumeMessage(_ consumer.Shard, store consumer.Store, envelope message.Envelope, _ *message.Publisher) error

func (*Extractor) FinalizeTxn

func (ext *Extractor) FinalizeTxn(shard consumer.Shard, store consumer.Store, publisher *message.Publisher) error

func (*Extractor) FinishedTxn

func (ext *Extractor) FinishedTxn(shard consumer.Shard, store consumer.Store, op client.OpFuture)

func (*Extractor) InitApplication

func (ext *Extractor) InitApplication(args runconsumer.InitArgs) error

InitApplication initializes the Extractor.

func (Extractor) NewConfig

func (Extractor) NewConfig() runconsumer.Config

NewConfig returns a new Spec.

func (*Extractor) NewMessage

func (ext *Extractor) NewMessage(spec *broker.JournalSpec) (message.Message, error)

func (*Extractor) NewStore

func (ext *Extractor) NewStore(shard consumer.Shard, rec *recoverylog.Recorder) (consumer.Store, error)

NewStore constructs a Store for |shard| around the recovered local directory |dir| and initialized Recorder |rec|.

Jump to

Keyboard shortcuts

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