{"id":25968,"date":"2010-05-09T12:32:32","date_gmt":"2010-05-09T04:32:32","guid":{"rendered":"http:\/\/www.yankay.com\/?p=25968"},"modified":"2010-05-09T12:32:32","modified_gmt":"2010-05-09T04:32:32","slug":"jsa4j%e9%80%9a%e7%94%a8%e6%95%b0%e6%8d%ae%e5%ba%95%e5%b1%82","status":"publish","type":"post","link":"http:\/\/yankay.com\/jsa4j%e9%80%9a%e7%94%a8%e6%95%b0%e6%8d%ae%e5%ba%95%e5%b1%82\/","title":{"rendered":"Jsa4j\u901a\u7528\u6570\u636e\u5e95\u5c42"},"content":{"rendered":"
jsa4j<\/a>\u662fJerrymouse Storage API for Java\u7684\u7b80\u79f0\u3002\u662fJerryMouse<\/a>\u5c0f\u7ec4\u5f00\u53d1\u7684\u901a\u7528\u6570\u636e \u5e95\u5c42\uff0c\u53ef\u4ee5\u67b6\u8bbe\u5728\u5355\u673a\u6216\u8005Gae\u73af\u5883\u4e4b\u4e0b\u3002\u8131\u80ce\u4e8eCommonCloud<\/a>\u9879\u76ee\uff0c\u7531\u4e8eCommonCloud<\/a>\u8fc7 \u4e8e\u590d\u6742\uff0c\u7f3a\u4e4f\u53ef\u7528\u6027\u3002\u6240\u4ee5\u5f00\u53d1\u4e86\u4ed6\u7684\u7b80\u5316\u7248Jsa4J\u3002Jsa4J\u7684\u76ee\u6807\u662f\u53ef\u7528\u548c\u7b80\u6d01\u3002\u9879\u76ee\u5730\u5740<\/a><\/p>\n <\/p>\n Jsa4j\u5b50\u9879\u76ee\u5217\u8868<\/p>\n Jsa4j-db-kv \u63d0\u4f9b KeyValue \u6570\u636e\u5e93\u63a5\u53e3\u3002\u6709\u4e00\u4e2aDerby\u548c\u4e00\u4e2aGae\u5b9e\u73b0\u3002\u8fd8\u6709\u7528\u4e8e\u7f13\u5b58\u7684\u652f\u6301 <\/strong><\/p>\n \u63a5\u53e3\u672c\u8eab\u975e\u5e38\u7b80\u6d01\uff1a\u53ea\u6709\u4e24\u4e2a\u65b9\u6cd5\uff1a<\/p>\n \u8be6 \u89c1API\u6587\u6863<\/a><\/p>\n Jsa4j-db-table \u8868\u7ed3\u6784\u7684\u6570\u636e\u5e93\u652f\u6301 <\/strong><\/p>\n Jsa4j-search \u63d0\u4f9b\u5168\u6587\u641c\u7d22\u652f\u6301\u3002 <\/strong><\/p>\n Jsa4j-bus \u5efa\u7acb\u5728\u5206\u5e03\u5f0f\u7f13\u5b58\u4e0a\u7684\u901a\u8baf\u603b\u7ebf <\/strong><\/p>\n<\/div>\n Jsa4j- db-kv<\/strong>\u3002\u968f\u7740NoSql<\/a>?<\/a>\u8fd0\u52a8\uff0c\u65b0\u5947\u7684\u6570\u636e\u5e93\u5c42\u51fa\u4e0d\u7a77\uff0c\u63d0\u4f9b \u4e86\u5404\u79cd\u4e30\u5bcc\u7684\u63a5\u53e3\u3002\u8fd9\u4e9b\u63a5\u53e3\u4e30\u5bcc\u5728\u4e24\u4e2a\u65b9\u9762\uff1a<\/p>\n Jsa4j- db-kv\u6ca1\u6709\u201c\u4e8b\u52a1\u5904\u7406\u201d\u548c\u201c\u6570\u636e\u7ed3\u6784\u201d\u7684\u6982\u5ff5\uff0c\u6781\u5927\u7684\u65b9\u4fbf\u4e86\u6570\u636e\u5e93\u5f00\u53d1\u3002<\/p>\n \u5173\u4e8e\u4e8b\u52a1\u3002<\/strong>\u4e0d\u7ba1\u662fACID\u8fd8\u662f BASE\uff0c\u90fd\u662f\u4e8b\u52a1\u5904\u7406\u65b9\u5f0f\u3002Jsa4j-db-kv\u6ca1\u6709\u4e8b\u52a1\u7684\u6982\u5ff5\uff0c\u9ed8\u8ba4\u5927\u4e8e\u914d\u7f6e\uff0c \u8ba4\u4e3a\u5b58\u64cd\u4f5c\u9700\u8981\u4e8b\u52a1\uff0c\u53d6\u64cd\u4f5c\u4e0d\u9700\u8981\u3002\u8ba4\u4e3a\u6570\u636e\u5e93\u5199\u5165\u6c38\u8fdc\u662f\u6210\u529f\u7684\u3002\u5177\u4f53\u662f\u4e0d\u662f\u771f\u7684\u80fd\u6210\u529f\uff0c\u5e94\u8be5\u7531\u53e6\u4e00\u5957\u7cfb\u7edf\u6765\u7ba1\u7406\u3002<\/p>\n \u5bf9\u4e8e\u6bd4\u8f83\u53ef\u9760\u7684\u5217\u5b58\u6570\u636e\u5e93\uff0c\u548c\u4e0d\u600e\u4e48\u53ef\u9760\u7684\u7c7b\u4f3cCache\u7684\u6570\u636e\u5e93\u90fd\u6709\u652f\u6301\u3002<\/p>\n \u5173\u4e8e\u6570\u636e\u7ed3\u6784<\/strong>\u3002\u6570\u636e\u7ed3\u6784\u65b9\u9762\u6709\u5173\u7cfb\u6027 \u6570\u636e\u5e93\uff0c\u5217\u5b58(BigTable?<\/a> like),\u6587\u6863\u6570\u636e\u5e93\uff0c\u56fe\u6570\u636e\u5e93\u548cKey Value\u4e4b\u5206\u3002\u5176\u4e2dKey Value\u662f\u6700\u7b80\u5355\u7684\uff0c\u53ef\u4ee5\u7531\u5176\u4ed6\u7c7b\u578b\u7684\u6570\u636e\u5e93\u5b9e\u73b0\u3002\u540c\u65f6\u63d0\u4f9b\u4e00\u4e2a\u7d22\u5f15\u5de5\u5177\u548c\u641c\u7d22\u5de5\u5177\uff0c\u6ee1\u8db3\u5728\u6570\u636e\u7d22\u5f15\u4e0a\u7684\u9700\u8981\u3002<\/p>\n
\n
\n\u00a0String get(String key)\n\u00a0String put(String key, String value)<\/pre>\n
\n\n
\n