提交 08233bee 编写于 作者: B barrierye

add the comment for CheckFile function. test=develop

上级 d62a3dd7
...@@ -262,10 +262,11 @@ bool MultiSlotDataFeed::CheckFile(const char* filename) { ...@@ -262,10 +262,11 @@ bool MultiSlotDataFeed::CheckFile(const char* filename) {
// It may be added '\t' character to the end of the output of reduce // It may be added '\t' character to the end of the output of reduce
// task when processes data by Hadoop(when the output of the reduce // task when processes data by Hadoop(when the output of the reduce
// task of Hadoop has only one field, it will add a '\t' at the end // task of Hadoop has only one field, it will add a '\t' at the end
// of the line by default), which does not affect the correctness of // of the line by default, and you can use this option to avoid it:
// the data. Therefore, it should be judged that the data is not // `-D mapred.textoutputformat.ignoreseparator=true`), which does
// normal when the end of each line of data contains characters // not affect the correctness of the data. Therefore, it should be
// which are not spaces. // judged that the data is not normal when the end of each line of
// data contains characters which are not spaces.
while (endptr - str != len) { while (endptr - str != len) {
if (!isspace(*(endptr++))) { if (!isspace(*(endptr++))) {
VLOG(0) VLOG(0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册