I am have been writing an Accumulo [1] backend for gora. I am pretty
far along, but not finished. When I am finished, I plan to post a
patch on a jira ticket. If anyone would like to review it let me
know.
I have a question about storing arrays. I am wondering what the
expected behavior is given the following?
{
"type": "record",
"name": "Foo",
"namespace": "test",
"fields" : [
{"name": "data","type": "array", "items": "string"}
]
}
Foo foo1 = new test.Foo();
foo1.addToData("d1");
foo1.addToData("d2");
foo1.addToData("d3");
datastore.put(42l, foo1);
datastore.flush();
Foo foo2 = new test.Foo();
foo2.addToData("d4");
foo2.addToData("d5");
datastore.put(42l, foo2);
datastore.flush();
Foo foo3 = datastore.get(42l);
System.out.println(foo3); //what would you expect this to print for
the data array? d4,d5?
[1]: http://incubator.apache.org/accumulo