Class ReusablePointer
- java.lang.Object
-
- org.apache.hugegraph.computer.core.compute.input.ReusablePointer
-
-
Constructor Summary
Constructors Constructor Description ReusablePointer()ReusablePointer(byte[] bytes, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]bytes()Only [0 ..intcompareTo(Pointer other)org.apache.hugegraph.computer.core.io.RandomAccessInputinput()longlength()longoffset()voidread(org.apache.hugegraph.computer.core.io.RandomAccessInput in)voidwrite(org.apache.hugegraph.computer.core.io.RandomAccessOutput output)
-
-
-
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
-
input
public org.apache.hugegraph.computer.core.io.RandomAccessInput input()
-
bytes
public byte[] bytes()
Only [0 .. length) of the returned byte array is valid. The extra data [length .. bytes.length) is meaningless, may be left by previous pointer.
-
write
public void write(org.apache.hugegraph.computer.core.io.RandomAccessOutput output) throws java.io.IOException
-
-