bigquery

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 20 Imported by: 0

README

Google Big Query

This sink implements Google Big Query protocol. It can can be enabled by adding the following configuration in the tables section:

tables:
  eventlog:
    compact:                               # enable compaction
      interval: 60                         # compact every 60 seconds
      nameFunc: "s3://bucket/namefunc.lua" # file name function
      bigquery:                            # sink to use
        project: "project-id-1"            # project ID
        dataset: "mydataset"               # big query dataset ID
        table: "mytable"                   # big query table ID
...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	*base.Writer
	// contains filtered or unexported fields
}

Writer represents a writer for Google Cloud Storage.

func New

func New(project, dataset, table, encoding, filter string, monitor monitor.Monitor) (*Writer, error)

New creates a new writer.

func (*Writer) Close

func (w *Writer) Close() error

Close closes the writer.

func (*Writer) Stream added in v1.6.0

func (w *Writer) Stream(row block.Row) error

Stream publishes the rows in real-time.

func (*Writer) Write

func (w *Writer) Write(key key.Key, blocks []block.Block) error

Write writes the data to the sink.

Jump to

Keyboard shortcuts

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