esndjson

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 14 Imported by: 1 module, 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.

README

esndjson

elasticsearch to ndjson migration tool for large indices

Credits

Guo Y.K., MIT License

Documentation

Index

Constants

View Source
const (
	ExtNDJSON        = ".ndjson"
	ExtNDJSONGzipped = ".ndjson.gz"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	Run(ctx context.Context) (err error)
}

func NewExporter

func NewExporter(opts ExporterOptions) (Exporter, error)

type ExporterOptions

type ExporterOptions struct {
	// elasticsearch url
	URL string
	// elasticsearch sniff
	Sniff bool
	// local directory
	Dir string
	// index to exportSection
	Index string
	// bulk
	Bulk int
	// section key for term aggregation and term search
	SectionKey string
	// concurrency
	Concurrency int
	// compress level
	CompressLevel int
	// logger
	Logger Logger
}

type Logger added in v1.0.2

type Logger func(layout string, items ...interface{})

Directories

Path Synopsis
cmd
esndjson command

Jump to

Keyboard shortcuts

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