io

package
v0.0.0-...-7d47eef Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package io contains utilities to load/save decision trees

Index

Constants

This section is empty.

Variables

View Source
var RegisteredFormats = make(map[string]func(path string) (Reader, error))

RegisteredFormats is the list of format readers.

Functions

This section is empty.

Types

type Reader

type Reader interface {

	// Next returns the next raw Node protobuffer from the stream. Returns nil at the end of the
	// stream. "Close" should be called once the reading is done (even if file reaches end).
	Next() (*pb.Node, error)
	Close() error
}

Reader is a stream of nodes.

func NewNodeReader

func NewNodeReader(path string, numShards int, format string) (Reader, error)

NewNodeReader creates a new node reader from a sharded set of files.

Directories

Path Synopsis
Package blobsequence implement node reading from blob sequence files.
Package blobsequence implement node reading from blob sequence files.
Package canonical registers the "canonical" ways to read tree nodes.
Package canonical registers the "canonical" ways to read tree nodes.

Jump to

Keyboard shortcuts

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