Class RandomWalkMessage
- java.lang.Object
-
- org.apache.hugegraph.computer.algorithm.sampling.RandomWalkMessage
-
- All Implemented Interfaces:
java.lang.Comparable<org.apache.hugegraph.computer.core.graph.value.Value>,org.apache.hugegraph.computer.core.graph.value.Value,org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.util.List<java.lang.Object>>,org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.util.List<java.lang.Object>>,org.apache.hugegraph.computer.core.io.Readable,org.apache.hugegraph.computer.core.io.Writable
public class RandomWalkMessage extends java.lang.Object implements org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.util.List<java.lang.Object>>
-
-
Constructor Summary
Constructors Constructor Description RandomWalkMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToPath(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)voidaddToPreVertexAdjacence(org.apache.hugegraph.computer.core.graph.id.Id vertexId)voidfinish()booleanisFinish()org.apache.hugegraph.computer.core.graph.value.IdListpath()org.apache.hugegraph.computer.core.graph.value.IdListpreVertexAdjacence()voidread(org.apache.hugegraph.computer.core.io.RandomAccessInput in)java.util.List<java.lang.Object>value()voidwrite(org.apache.hugegraph.computer.core.io.RandomAccessOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
read
public void read(org.apache.hugegraph.computer.core.io.RandomAccessInput in) throws java.io.IOException- Specified by:
readin interfaceorg.apache.hugegraph.computer.core.io.Readable- Throws:
java.io.IOException
-
write
public void write(org.apache.hugegraph.computer.core.io.RandomAccessOutput out) throws java.io.IOException- Specified by:
writein interfaceorg.apache.hugegraph.computer.core.io.Writable- Throws:
java.io.IOException
-
value
public java.util.List<java.lang.Object> value()
- Specified by:
valuein interfaceorg.apache.hugegraph.computer.core.graph.value.Value- Specified by:
valuein interfaceorg.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.util.List<java.lang.Object>>
-
preVertexAdjacence
public org.apache.hugegraph.computer.core.graph.value.IdList preVertexAdjacence()
-
addToPreVertexAdjacence
public void addToPreVertexAdjacence(org.apache.hugegraph.computer.core.graph.id.Id vertexId)
-
path
public org.apache.hugegraph.computer.core.graph.value.IdList path()
-
addToPath
public void addToPath(org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)
-
isFinish
public boolean isFinish()
-
finish
public void finish()
-
-