internal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecompressAndLoad added in v0.5.0

func DecompressAndLoad(qw graph.QuadWriter, cfg *config.Config, path, typ string, loadFn func(graph.QuadWriter, *config.Config, quad.Unmarshaler) error) error

DecompressAndLoad will load or fetch a graph from the given path, decompress it, and then call the given load function to process the decompressed graph. If no loadFn is provided, db.Load is called.

func Decompressor

func Decompressor(r io.Reader) (io.Reader, error)

Decompressor detects the file type of an io.Reader between bzip, gzip, or raw quad file.

func Dump added in v0.5.0

func Dump(qs graph.QuadStore, outFile, typ string) error

Dump the content of the database into a file based on a few different formats

func Load added in v0.5.0

func Load(qw graph.QuadWriter, cfg *config.Config, path, typ string) error

Load loads a graph from the given path and write it to qw. See DecompressAndLoad for more information.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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