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 boolean
add(long gid, org.apache.hadoop.io.Writable writable)
void
clear()
long[]
getGids()
org.apache.hadoop.io.Writable[]
getMsgOnVertex()
int
serializedSize()
Number of bytes need for serialization.int
size()
String
toString()
void
write(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:
serializedSize
in interfaceGid2Data
- Returns:
- number of bytes
-
write
public void write(DataOutput output) throws IOException
- Throws:
IOException
-
-