splitter

package
v0.0.0-...-1694835 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngestionDataSplitter

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

IngestionDataSplitter provides a struct to split large input data files into smaller splits and write them to a secondary GCS path.

func NewIngestionDataSplitter

func NewIngestionDataSplitter(ctx context.Context, maxItemsPerSplit int, secondaryGCSPath string, gcsClient gcs.GCSClient) (*IngestionDataSplitter, error)

NewIngestionDataSplitter returns a new instance of the IngestionDataSplitter.

func (IngestionDataSplitter) SplitAndPublishFormattedData

func (s IngestionDataSplitter) SplitAndPublishFormattedData(ctx context.Context, f format.Format, filename string) error

SplitAndPublishFormattedData splits the data in f into smaller chunks and writes the individual chunks as a separate file in GCS.

Jump to

Keyboard shortcuts

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