Package com.alibaba.graphscope.utils
Interface Gid2Data
-
- All Known Implementing Classes:
Gid2DataFixed,Gid2DataResizable
public interface Gid2Data
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(long gid, org.apache.hadoop.io.Writable writable)voidclear()static Gid2DatanewFixed(int capacity)static Gid2DatanewResizable(int capacity)intserializedSize()Number of bytes need for serialization.intsize()
-
-
-
Method Detail
-
newResizable
static Gid2Data newResizable(int capacity)
-
newFixed
static Gid2Data newFixed(int capacity)
-
add
boolean add(long gid, org.apache.hadoop.io.Writable writable)
-
clear
void clear()
-
size
int size()
-
serializedSize
int serializedSize()
Number of bytes need for serialization.- Returns:
- number of bytes
-
-