Package com.alibaba.graphscope.utils
Class Gid2DataFixed
- java.lang.Object
-
- com.alibaba.graphscope.utils.Gid2DataFixed
-
-
Constructor Summary
Constructors Constructor Description Gid2DataFixed(int capacity)Not resizable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(long gid, org.apache.hadoop.io.Writable writable)voidclear()long[]getGids()org.apache.hadoop.io.Writable[]getMsgOnVertex()intserializedSize()Number of bytes need for serialization.intsize()StringtoString()voidwrite(DataOutput output)
-
-
-
Method Detail
-
getGids
public long[] getGids()
-
getMsgOnVertex
public org.apache.hadoop.io.Writable[] getMsgOnVertex()
-
add
public boolean add(long gid, org.apache.hadoop.io.Writable writable)
-
serializedSize
public int serializedSize()
Number of bytes need for serialization.- Specified by:
serializedSizein interfaceGid2Data- Returns:
- number of bytes
-
write
public void write(DataOutput output) throws IOException
- Throws:
IOException
-
-