lines2avro

package module
v0.0.0-...-7f7bbd0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

README

go-lines2avro

Converts plain text lines -> simple AVRO records

Documentation

Index

Constants

View Source
const BlockLengthDefault int = 100

Variables

This section is empty.

Functions

func ReaderToLines

func ReaderToLines(rdr io.Reader) iter.Seq[string]

Types

type Codec

type Codec string
const (
	CodecNull    Codec = "null"
	CodecDeflate Codec = "deflate"
	CodecSnappy  Codec = "snappy"
	CodecZstd    Codec = "zstandard"
	CodecBzip2   Codec = "bzip2"
	CodecXz      Codec = "xz"
)

type EncodeConfig

type EncodeConfig struct {
	BlockLength int
	Codec
}
var EncodeConfigDefault EncodeConfig = EncodeConfig{
	BlockLength: BlockLengthDefault,
	Codec:       CodecNull,
}

type Schema

type Schema string
var SchemaDefault Schema = Schema(schemaDefault)

Directories

Path Synopsis
avro
cmd
lines2avro command

Jump to

Keyboard shortcuts

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