Class Gid2DataFixed

    • Constructor Detail

      • Gid2DataFixed

        public Gid2DataFixed​(int capacity)
        Not resizable.
        Parameters:
        capacity -
    • 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)
        Specified by:
        add in interface Gid2Data
      • clear

        public void clear()
        Specified by:
        clear in interface Gid2Data
      • size

        public int size()
        Specified by:
        size in interface Gid2Data
      • serializedSize

        public int serializedSize()
        Number of bytes need for serialization.
        Specified by:
        serializedSize in interface Gid2Data
        Returns:
        number of bytes