Interface GraphDataBufferManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addEdge​(int threadId, org.apache.hadoop.io.WritableComparable srcId, org.apache.hadoop.io.WritableComparable dstId, org.apache.hadoop.io.Writable value)  
      void addEdges​(int threadId, org.apache.hadoop.io.Writable id, Iterable<org.apache.giraph.edge.Edge> edges)  
      void addVertex​(int threadId, org.apache.hadoop.io.Writable id, org.apache.hadoop.io.Writable value)  
      void finishAdding()  
      void reserveNumEdges​(int length)  
      void reserveNumVertices​(int length)  
    • Method Detail

      • addVertex

        void addVertex​(int threadId,
                       org.apache.hadoop.io.Writable id,
                       org.apache.hadoop.io.Writable value)
                throws IOException
        Throws:
        IOException
      • addEdges

        void addEdges​(int threadId,
                      org.apache.hadoop.io.Writable id,
                      Iterable<org.apache.giraph.edge.Edge> edges)
               throws IOException
        Throws:
        IOException
      • addEdge

        void addEdge​(int threadId,
                     org.apache.hadoop.io.WritableComparable srcId,
                     org.apache.hadoop.io.WritableComparable dstId,
                     org.apache.hadoop.io.Writable value)
              throws IOException
        Throws:
        IOException
      • reserveNumVertices

        void reserveNumVertices​(int length)
      • reserveNumEdges

        void reserveNumEdges​(int length)
      • finishAdding

        void finishAdding()