Class FileElementFetcher<T extends org.apache.hugegraph.structure.GraphElement>

    • Constructor Summary

      Constructors 
      Constructor Description
      FileElementFetcher​(org.apache.hugegraph.computer.core.config.Config config)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<T> buildElement​(org.apache.hugegraph.loader.reader.line.Line line, org.apache.hugegraph.loader.builder.ElementBuilder<T> builder)  
      void close()  
      protected abstract java.util.List<org.apache.hugegraph.loader.builder.ElementBuilder<T>> elementBuilders​(org.apache.hugegraph.loader.executor.LoadContext context, org.apache.hugegraph.loader.mapping.InputStruct struct)  
      boolean hasNext()  
      T next()  
      void prepareLoadInputSplit​(InputSplit split)
      Set the current input split meta information to be loaded
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • FileElementFetcher

        public FileElementFetcher​(org.apache.hugegraph.computer.core.config.Config config)
    • Method Detail

      • prepareLoadInputSplit

        public void prepareLoadInputSplit​(InputSplit split)
        Description copied from interface: ElementFetcher
        Set the current input split meta information to be loaded
        Specified by:
        prepareLoadInputSplit in interface ElementFetcher<T extends org.apache.hugegraph.structure.GraphElement>
        Parameters:
        split - current input split meta
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T extends org.apache.hugegraph.structure.GraphElement>
      • next

        public T next()
        Specified by:
        next in interface java.util.Iterator<T extends org.apache.hugegraph.structure.GraphElement>
      • buildElement

        protected java.util.List<T> buildElement​(org.apache.hugegraph.loader.reader.line.Line line,
                                                 org.apache.hugegraph.loader.builder.ElementBuilder<T> builder)
      • elementBuilders

        protected abstract java.util.List<org.apache.hugegraph.loader.builder.ElementBuilder<T>> elementBuilders​(org.apache.hugegraph.loader.executor.LoadContext context,
                                                                                                                 org.apache.hugegraph.loader.mapping.InputStruct struct)
      • close

        public void close()