title: Vertices with complex values in Apache Giraph
body: <p>I am trying to read some text file containing relevant vertices information into Giraph: each line is </p>
  
  <p><strong>vertex_id attribute_1 attribute_2 .....attribute_n</strong></p>
  
  <p>where each attribute is a string. </p>
  
  <p>The goal would be to create a vertex where all these attributes are part of vertex's value. </p>
  
  <p>Looking up the various input formats I could not find anything out of the box, so I assume I have to derive my vertex input class  from <strong>VertexValueInputFormat</strong> (I have a separate reader for edges). </p>
  
  <p>Problem is: how? I have created a a Value class which contains a String[] array, but how do I hand it over to Giraph/Hadoop? Here  is a reader for a single line:</p>
  
  <p><a href="https://giraph.apache.org/giraph-core/apidocs/org/apache/giraph/io/formats/TextVertexValueInputFormat.TextVertexValueReaderFromEachLine.html" rel="nofollow">https://giraph.apache.org/giraph-core/apidocs/org/apache/giraph/io/formats/TextVertexValueInputFormat.TextVertexValueReaderFromEachLine.html</a></p>
  
  <p><strong>protected abstract V  getValue(org.apache.hadoop.io.Text line)</strong></p>
  
  <p>The thought was, V will be an <strong>ArrayWritable</strong>, but does not seem to like it.</p>
  
  <p>Any clue? Thanks</p>