Utils

package
v0.0.0-...-231b332 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInputBinaryFile

func GenerateInputBinaryFile(filename string, numberOfElements int64) error

GenerateInputBinaryFile - Function responsible for generating the input file for sorting

func Sort

func Sort(inputFileName string, outputFileName string, numberOfCPUs int32, numberOfBuckets int32) error

Sort - Function that is the main function dealing with sorting numbers from the given file

func SortInMemory

func SortInMemory(inputFileName string, outputFileName string, numberOfCPUs int32, numberOfBuckets int32) error

func VerifySortedFile

func VerifySortedFile(filename string) (bool, error)

VerifySortedFile - Function responsible for validating the sorted data in the file

func WriteDataToOutputFile

func WriteDataToOutputFile(filename string, numberOfElements int64, data []int32) error

WriteDataToOutputFile - Function responsible for writing a small amount of data (see threshold in Utils/sort.go) to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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