Uploaded image for project: 'Giraph (Retired)'
  1. Giraph (Retired)
  2. GIRAPH-118

Clarify messages behavior in BasicVertex

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.1.0
    • 0.1.0
    • graph
    • None

    Description

      initialize() can receive a null parameter for messages (at least that's what EdgeListVertex does). We should avoid that and pass an empty Iterable instead. That should be cheap for us inside of the InputFormat, just passing a static immutable empty list.

      setMessages(Iterable<M>) should be changed to putMessages(Iterable<M>). the set prefix suggests an assignment, while setMessages is used to transfer the messages to the internal datastructure the user is responsible for. putMessages() should clarify this.

      Attachments

        1. GIRAPH-118.diff
          4 kB
          Claudio Martella
        2. GIRAPH-119.diff
          4 kB
          Claudio Martella

        Activity

          People

            cmartella Claudio Martella
            cmartella Claudio Martella
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: