incubator-gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Turner <ke...@deenlo.com>
Subject accumulo backend for gora
Date Thu, 01 Dec 2011 21:07:45 GMT
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

Mime
View raw message