Search in sources :

Example 1 with FileReader

use of com.baidu.hugegraph.loader.reader.file.FileReader in project hugegraph-computer by hugegraph.

the class FileElementFetcher method createReader.

private InputReader createReader(FileInputSplit split) {
    InputStruct struct = split.struct();
    FileSource source = (FileSource) struct.input();
    source.path(split.path());
    FileReader reader = (FileReader) InputReader.create(struct.input());
    reader.init(this.context, struct);
    return reader;
}
Also used : InputStruct(com.baidu.hugegraph.loader.mapping.InputStruct) FileSource(com.baidu.hugegraph.loader.source.file.FileSource) FileReader(com.baidu.hugegraph.loader.reader.file.FileReader)

Aggregations

InputStruct (com.baidu.hugegraph.loader.mapping.InputStruct)1 FileReader (com.baidu.hugegraph.loader.reader.file.FileReader)1 FileSource (com.baidu.hugegraph.loader.source.file.FileSource)1