Yoji Shidara
null+****@clear*****
Wed Mar 5 18:47:00 JST 2014
Yoji Shidara 2014-03-05 18:47:00 +0900 (Wed, 05 Mar 2014) New Revision: 25f55dde8d1e1c0ce53c25cf99d8fc907e6a1f90 https://github.com/droonga/droonga.org/commit/25f55dde8d1e1c0ce53c25cf99d8fc907e6a1f90 Merged efe7e86: Merge branch 'catalog-example' into gh-pages Message: Add examples for Volume definition Modified files: reference/catalog/version2/index.md Modified: reference/catalog/version2/index.md (+34 -0) =================================================================== --- reference/catalog/version2/index.md 2014-03-05 18:28:39 +0900 (4614213) +++ reference/catalog/version2/index.md 2014-03-05 18:47:00 +0900 (c0bf3fb) @@ -610,6 +610,40 @@ Default value Inheritable : False. +#### Examples + +##### Example 1 + +A volume at "localhost:24224/volume.000": + +~~~ +{ + "address": "localhost:24224/volume.000" +} +~~~ + +#### Example 2 + +A volume that consists of three slices, records are to be distributed according to `hash`, +which is ratio-scaled slicer function, of `_key`. + +~~~ +{ + "dimension": "_key", + "slicer": "hash", + "slices": { + "volume": { + "address": "localhost:24224/volume.000" + }, + "volume": { + "address": "localhost:24224/volume.001" + }, + "volume": { + "address": "localhost:24224/volume.002" + } + } +~~~ + ### Slice definition {#slice} Abstract -------------- next part -------------- HTML����������������������������...다운로드