integrations

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryReadCallOptions

type BigQueryReadCallOptions struct {
	CreateReadSession []gax.CallOption
	ReadRows          []gax.CallOption
}

type BigQueryReadClient

type BigQueryReadClient struct {
	// contains filtered or unexported fields
}

func NewBigQueryReadClient

func NewBigQueryReadClient(ctx context.Context, opts ...option.ClientOption) (*BigQueryReadClient, error)

func (*BigQueryReadClient) NewBigQueryReader

func (bq *BigQueryReadClient) NewBigQueryReader(ctx context.Context, projectID, datasetID, tableID string) (*BigQueryReader, error)

NewBigQueryReader creates a new BigQueryReader for the specified table

type BigQueryReader

type BigQueryReader struct {
	// contains filtered or unexported fields
}

func (*BigQueryReader) Close

func (r *BigQueryReader) Close() error

Close closes the BigQueryReader and releases resources

func (*BigQueryReader) Read

func (r *BigQueryReader) Read() (arrow.Record, error)

Read reads the next record from the BigQuery stream

func (*BigQueryReader) Schema

func (r *BigQueryReader) Schema() (*arrow.Schema, error)

Schema returns the schema of the BigQueryReader

type BigQueryRecordWriter

type BigQueryRecordWriter struct {
	// contains filtered or unexported fields
}

func NewBigQueryRecordWriter

func NewBigQueryRecordWriter(ctx context.Context, client *BigQueryWriteClient, projectID, datasetID, tableID string, opts *BigQueryWriteOptions) (*BigQueryRecordWriter, error)

func (*BigQueryRecordWriter) Close

func (w *BigQueryRecordWriter) Close() error

func (*BigQueryRecordWriter) Write

func (w *BigQueryRecordWriter) Write(record arrow.Record) error

type BigQueryWriteClient

type BigQueryWriteClient struct {
	// contains filtered or unexported fields
}

func NewBigQueryWriteClient

func NewBigQueryWriteClient(ctx context.Context, serviceAccountJSON string, schema *arrow.Schema) (*BigQueryWriteClient, error)

type BigQueryWriteOptions

type BigQueryWriteOptions struct {
	WriteStreamType storagepb.WriteStream_Type
	Allocator       memory.Allocator
}

func NewDefaultBigQueryWriteOptions

func NewDefaultBigQueryWriteOptions() *BigQueryWriteOptions

Jump to

Keyboard shortcuts

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