use of com.baidu.hugegraph.loader.reader.InputReader in project incubator-hugegraph-toolchain by apache.
the class HugeGraphLoader method loadStructs.
private void loadStructs(List<InputStruct> structs) {
// Load input structs one by one
for (InputStruct struct : structs) {
if (this.context.stopped()) {
break;
}
if (struct.skip()) {
continue;
}
// Create and init InputReader, fetch next batch lines
try (InputReader reader = InputReader.create(struct.input())) {
// Init reader
reader.init(this.context, struct);
// Load data from current input mapping
this.loadStruct(struct, reader);
} catch (InitException e) {
throw new LoadException("Failed to init input reader", e);
}
}
}
Aggregations