Which is better to use to manage Vertex state: POJO instance variables or Giraph values?

2014-08-26 Thread Matthew Cornell
Hi there. I'm confused about when it's OK to use Vertex instance variables to maintain state rather than proper Giraph values ala getValue(). An interesting example I found in the source demonstrates both: SimpleTriangleClosingVertex, which has both an instance variable (closeMap) and a custom vert

How do I validate customArguments?

2014-08-26 Thread Matthew Cornell
Hi again. My application needs to pass in a String argument to the computation which each Vertex needs access to. (The argument is a list of the form "[item1, item2, ...]".) I found --customArguments (which I set in my tests via conf.set(, )) but I need to check that it's properly formatted. Where