file

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIo

func GetIo(parsed *url.URL, config *data.StreamConfig) (io *bufio.Writer, err error)

Types

type CSVDataWriter

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

func AddCSV

func AddCSV(ds *data.DataStream, writer io.Writer) *CSVDataWriter

func NewCSVDataWriter

func NewCSVDataWriter(datastream *data.DataStream, writer io.Writer) *CSVDataWriter

func (*CSVDataWriter) Close

func (cw *CSVDataWriter) Close() error

func (*CSVDataWriter) Flush

func (cw *CSVDataWriter) Flush() error

func (*CSVDataWriter) WriteRow

func (cw *CSVDataWriter) WriteRow(row []any) error

type DecimalType added in v0.6.0

type DecimalType int
const (
	UnknownDecimal DecimalType = iota
	Int32Decimal
	Int64Decimal
	ByteArrayDecimal
)

type JSONLWriter

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

func AddJSONL

func AddJSONL(ds *data.DataStream, writer io.Writer) *JSONLWriter

func (*JSONLWriter) Close

func (w *JSONLWriter) Close() error

func (*JSONLWriter) Flush

func (w *JSONLWriter) Flush() error

func (*JSONLWriter) WriteRow

func (w *JSONLWriter) WriteRow(row []any) error

type MappedType added in v0.6.0

type MappedType struct {
	ParquetType parquet.Type
	LogicalType schema.LogicalType
	GoType      reflect.Type
}

type ParquetDataWriter

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

func AddParquet

func AddParquet(ds *data.DataStream, writer io.Writer) *ParquetDataWriter

func NewParquetDataWriter

func NewParquetDataWriter(datastream *data.DataStream, ioWriter io.Writer) *ParquetDataWriter

func (*ParquetDataWriter) Close

func (pw *ParquetDataWriter) Close() error

func (*ParquetDataWriter) Flush

func (pw *ParquetDataWriter) Flush() error

func (*ParquetDataWriter) WriteRow

func (pw *ParquetDataWriter) WriteRow(row []any) error

type ParquetDecimal added in v0.6.0

type ParquetDecimal struct {
	Type         DecimalType // Discriminator to indicate the active type
	Int32Val     int32
	Int64Val     int64
	ByteArrayVal []byte
}

Jump to

Keyboard shortcuts

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