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 boolean
add(long gid, org.apache.hadoop.io.Writable writable)
void
clear()
static Gid2Data
newFixed(int capacity)
static Gid2Data
newResizable(int capacity)
int
serializedSize()
Number of bytes need for serialization.int
size()
-
-
-
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
-
-