explode

package
v0.0.0-...-63fa78c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package explode wraps all needed logic to run a parallel job that will take a directory of tf records and explode them into their respective classes. Each record found is split into its constituent record pieces and are streamed into the output directory based on the classes requested in the `--filter`.

Index

Constants

This section is empty.

Variables

View Source
var (
	CLI = struct {
		// Command line args common to all commands
		inputDir  string
		outputDir string
		filter    string

		// Private stuff
		numWorkers int
		classes    []int
	}{}
)

Functions

func RunJob

func RunJob(nworkers int, args []string, wl *logger.WorkerLogger) error

Types

type AtomicClassNamer

type AtomicClassNamer struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func (*AtomicClassNamer) GetNextIndexForClass

func (a *AtomicClassNamer) GetNextIndexForClass(id int) int

GetNextIndexForClass returns the next valid integer value for the next tf record to be named in a given directory of said `id`.

Jump to

Keyboard shortcuts

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