Class HugeElementFetcher<T>
- java.lang.Object
-
- org.apache.hugegraph.computer.core.input.hg.HugeElementFetcher<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>,ElementFetcher<T>
- Direct Known Subclasses:
HugeEdgeFetcher,HugeVertexFetcher
public abstract class HugeElementFetcher<T> extends java.lang.Object implements ElementFetcher<T>
-
-
Constructor Summary
Constructors Constructor Description HugeElementFetcher(org.apache.hugegraph.computer.core.config.Config config, org.apache.hugegraph.driver.HugeClient client)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.apache.hugegraph.driver.HugeClientclient()protected org.apache.hugegraph.computer.core.config.Configconfig()abstract java.util.Iterator<T>fetch(InputSplit split)booleanhasNext()Tnext()protected intpageSize()voidprepareLoadInputSplit(InputSplit split)Set the current input split meta information to be loadedstatic org.apache.hugegraph.structure.graph.ShardtoShard(InputSplit split)
-
-
-
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:ElementFetcherSet the current input split meta information to be loaded- Specified by:
prepareLoadInputSplitin interfaceElementFetcher<T>- Parameters:
split- current input split meta
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.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)
-
-