I am trying to read some text file containing relevant vertices information into Giraph: each line is
vertex_id attribute_1 attribute_2 .....attribute_n
where each attribute is a string.
The goal would be to create a vertex where all these attributes are part of vertex's value.
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 VertexValueInputFormat (I have a separate reader for edges).
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:
https://giraph.apache.org/giraph-core/apidocs/org/apache/giraph/io/formats/TextVertexValueInputFormat.TextVertexValueReaderFromEachLine.html
protected abstract V getValue(org.apache.hadoop.io.Text line)
The thought was, V will be an ArrayWritable, but does not seem to like it.
Any clue? Thanks