1919
2020import java .io .File ;
2121import java .nio .file .Paths ;
22- import java .util .List ;
2322
2423import org .apache .commons .io .FileUtils ;
2524import org .apache .commons .lang3 .StringUtils ;
26- import org .apache .hugegraph .util .E ;
2725
2826import org .apache .hugegraph .loader .source .SourceType ;
29- import org .apache .hugegraph .loader .source .file .Compression ;
30- import org .apache .hugegraph .loader .source .file .DirFilter ;
31- import org .apache .hugegraph .loader .source .file .FileFilter ;
32- import org .apache .hugegraph .loader .source .file .FileFormat ;
3327import org .apache .hugegraph .loader .source .file .FileSource ;
34- import org .apache .hugegraph .loader . source . file . SkippedLine ;
35- import com . fasterxml . jackson . annotation . JsonCreator ;
28+ import org .apache .hugegraph .util . E ;
29+
3630import com .fasterxml .jackson .annotation .JsonProperty ;
3731
3832public class HDFSSource extends FileSource {
@@ -44,23 +38,6 @@ public class HDFSSource extends FileSource {
4438 @ JsonProperty ("kerberos_config" )
4539 private KerberosConfig kerberosConfig ;
4640
47- @ JsonCreator
48- public HDFSSource (@ JsonProperty ("path" ) String path ,
49- @ JsonProperty ("dir_filter" ) DirFilter dirFilter ,
50- @ JsonProperty ("filter" ) FileFilter filter ,
51- @ JsonProperty ("format" ) FileFormat format ,
52- @ JsonProperty ("delimiter" ) String delimiter ,
53- @ JsonProperty ("date_format" ) String dateFormat ,
54- @ JsonProperty ("extra_date_formats" )
55- List <String > extraDateFormats ,
56- @ JsonProperty ("time_zone" ) String timeZone ,
57- @ JsonProperty ("skipped_line" ) SkippedLine skippedLine ,
58- @ JsonProperty ("compression" ) Compression compression ,
59- @ JsonProperty ("batch_size" ) Integer batchSize ) {
60- super (path , dirFilter , filter , format , delimiter , dateFormat ,
61- extraDateFormats , timeZone , skippedLine , compression , batchSize );
62- }
63-
6441 @ Override
6542 public SourceType type () {
6643 return SourceType .HDFS ;
0 commit comments