You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/08/02 09:30:36 UTC

[GitHub] [inlong] GanfengTan commented on a diff in pull request #5261: [INLONG-5259][Agent] File data sources support custom end-of-line symbols

GanfengTan commented on code in PR #5261:
URL: https://github.com/apache/inlong/pull/5261#discussion_r935329188


##########
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/TextFileSource.java:
##########
@@ -76,6 +84,28 @@ public List<Reader> split(JobProfile jobConf) {
         return result;
     }
 
+    @Override
+    public void initSourceMeta(JobProfile jobProfile) {
+        this.sourceMetas = MetaDataUtils.getSourceMeta(jobProfile);
+    }
+
+    private int getSeekPosition(JobProfile jobConf, File file) {
+        int seekPosition;
+        if (jobConf.hasKey(JobConstants.JOB_FILE_COLLECT_TYPE) && FileConstants.INCREMENT.name()

Review Comment:
   Filter out unsupported collect type to reduce task submission



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org