Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorAlreadyClosed = errors.New("the sorter resources already flushed and closed")
)
Functions ¶
This section is empty.
Types ¶
type Compare ¶
Compare returns an integer comparing two lines. The result will be 0 if a==b, -1 if a < b, and +1 if a > b.
type Sorter ¶
type Sorter interface { // WriteLine Write single line. The function will split into multiple lines if a line contains '\n'. WriteLine(line string) error // Close and flush the result into destination stream, then close all resources. Close() error }
Sorter Sort large text data
type SorterOpt ¶
type SorterOpt func(opts sorterOpts) sorterOpts
func Comparator ¶
func MemoryLimit ¶
func TempCompress ¶
func TempFolder ¶
TempFolder Specify temporary folder. It's caller's responsibility to remove the temp folder if specified.
Click to show internal directories.
Click to hide internal directories.