Documentation ¶
Index ¶
- func InsertRecord(input chan ds.FileRecord, outputPath string, N int) (map[string]int, error)
- func Preprocess(reader ds.FileReader, cvt ds.Convertable, N int) (map[string]int, string, error)
- func ReadFromFile(r ds.FileReader, output chan string) error
- func SToFR(input chan string, cvt ds.Convertable, output chan ds.FileRecord) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertRecord ¶
InsertRecord 将input中的数据有序地输出到游程文件中
func Preprocess ¶
func Preprocess(reader ds.FileReader, cvt ds.Convertable, N int) (map[string]int, string, error)
文件记录的预处理阶段, 默认将游程文件置于系统设置的临时文件存放目录
func ReadFromFile ¶
func ReadFromFile(r ds.FileReader, output chan string) error
从文件中读取文本, 并写入到output
func SToFR ¶
func SToFR(input chan string, cvt ds.Convertable, output chan ds.FileRecord) error
将文本转化为记录
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.