Class HugeElementFetcher<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      HugeElementFetcher​(org.apache.hugegraph.computer.core.config.Config config, org.apache.hugegraph.driver.HugeClient client)  
    • Constructor Detail

      • HugeElementFetcher

        public HugeElementFetcher​(org.apache.hugegraph.computer.core.config.Config config,
                                  org.apache.hugegraph.driver.HugeClient client)
    • Method Detail

      • config

        protected org.apache.hugegraph.computer.core.config.Config config()
      • client

        protected org.apache.hugegraph.driver.HugeClient client()
      • pageSize

        protected int pageSize()
      • 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>
        Parameters:
        split - current input split meta
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
      • fetch

        public abstract java.util.Iterator<T> fetch​(InputSplit split)
      • toShard

        public static org.apache.hugegraph.structure.graph.Shard toShard​(InputSplit split)