ChanaAvro 数据存储
Chana 是基于 Akka 的 Avro 数据存储。此项目的名称来自于中文“刹那”,这个词音译自梵文“Kasna”,意思为“一瞬间”。
示例代码:
function onNameUpdated() { var age = record.get("age"); what_is(age); what_is(http_get); var http_get_result = http_get.apply(" java.lang.Thread.sleep(1000); what_is(http_get_result.value()); what_is(http_post); var http_post_result = http_post.apply("http://localhost:8080/personinfo/put/2/age", "888"); java.lang.Thread.sleep(1000); what_is(http_post_result.value()); for (i = 0; i < fields.length; i++) { var field = fields[i]; what_is(field._1); what_is(field._2); } }function what_is(value) { print(id + ": " + value); } onNameUpdated();
评论