recordio

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Overview

Package recordio implements the Mesos variant of RecordIO framing, whereby each record is prefixed by a line that indicates the length of the record in decimal ASCII. The bytes of the record immediately follow the length-line. Zero-length records are allowed.

Example
r := NewReader(strings.NewReader("6\nhello 0\n6\nworld!"))
records, err := ioutil.ReadAll(r)
fmt.Println(string(records), err)
Output:

hello world! <nil>

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFrameReader

func NewFrameReader(r io.Reader) framing.Reader

func NewReader

func NewReader(r io.Reader) io.Reader

NewReader returns an io.Reader that unpacks the data read from r out of RecordIO framing before returning it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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