Package com.alibaba.graphscope.utils
Class Gid2DataResizable
- java.lang.Object
-
- com.alibaba.graphscope.utils.Gid2DataResizable
-
-
Constructor Summary
Constructors Constructor Description Gid2DataResizable(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()
ArrayList<org.apache.hadoop.io.Writable>
getData()
ArrayList<Long>
getGids()
int
serializedSize()
Number of bytes need for serialization.int
size()
-
-
-
Method Detail
-
getData
public ArrayList<org.apache.hadoop.io.Writable> getData()
-
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
-
-