Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶
func Sort(record Record, less Less, outWriter io.Writer, tempFileName string, partBufferSize int) (err error)
record - function for get next record of data. Should return []byte or nil if no more data
less - function for compare two records of data. Should return true if b1 < b2
outWriter - io.Writer for save sorted data
tempFileName - name of temp file. File will be overwritten if it already exists
partBufferSize - presort buffer size
Types ¶
Click to show internal directories.
Click to hide internal directories.