integrations

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFormat

type FileFormat string

FileFormat represents the supported file formats for output.

const (
	ParquetFormat FileFormat = "parquet"
	CSVFormat     FileFormat = "csv"
)

type GCSSink

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

GCSSink represents a Google Cloud Storage sink for writing files.

func NewGCSSink

func NewGCSSink(ctx context.Context, bucketName, credsFile string) (*GCSSink, error)

NewGCSSink creates a new GCSSink with the specified bucket name and credentials file.

func (*GCSSink) Close

func (s *GCSSink) Close() error

Close releases resources associated with the GCSSink.

func (*GCSSink) WriteToGCS

func (s *GCSSink) WriteToGCS(ctx context.Context, reader arrio.Reader, filePath string, format FileFormat, delimiter rune, includeHeader bool, nullValue string, stringsReplacer *strings.Replacer, boolFormatter func(bool) string) error

WriteToGCS writes data from an Arrow reader to a GCS object in the specified format.

Jump to

Keyboard shortcuts

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