Sha256: 7b90f7c18bf2bbc84628daffcc579611eb163a590c5a94711a6d2cd3b7c8237b

Contents?: true

Size: 1.99 KB

Versions: 5

Compression:

Stored size: 1.99 KB

Contents

Execution example::

  table_create --name PatSuffix --flags TABLE_PAT_KEY|KEY_WITH_SIS --key_type ShortText
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  column_create --table PatSuffix --name original --type Bool
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  load --table PatSuffix
  [
  {"_key":"ひろゆき","original":true},
  {"_key":"まろゆき","original":true},
  {"_key":"ひろあき","original":true},
  {"_key":"ゆきひろ","original":true}
  ]
  # [[0, 1337566253.89858, 0.000355720520019531], 4]
  select --table PatSuffix --query _key:$ゆき
  # [
  #   [
  #     0, 
  #     1337566253.89858, 
  #     0.000355720520019531
  #   ], 
  #   [
  #     [
  #       [
  #         4
  #       ], 
  #       [
  #         [
  #           "_id", 
  #           "UInt32"
  #         ], 
  #         [
  #           "_key", 
  #           "ShortText"
  #         ], 
  #         [
  #           "original", 
  #           "Bool"
  #         ]
  #       ], 
  #       [
  #         3, 
  #         "ゆき", 
  #         false
  #       ], 
  #       [
  #         2, 
  #         "ろゆき", 
  #         false
  #       ], 
  #       [
  #         5, 
  #         "まろゆき", 
  #         true
  #       ], 
  #       [
  #         1, 
  #         "ひろゆき", 
  #         true
  #       ]
  #     ]
  #   ]
  # ]
  select --table PatSuffix --filter '_key @$ "ゆき" && original == true'
  # [
  #   [
  #     0, 
  #     1337566253.89858, 
  #     0.000355720520019531
  #   ], 
  #   [
  #     [
  #       [
  #         2
  #       ], 
  #       [
  #         [
  #           "_id", 
  #           "UInt32"
  #         ], 
  #         [
  #           "_key", 
  #           "ShortText"
  #         ], 
  #         [
  #           "original", 
  #           "Bool"
  #         ]
  #       ], 
  #       [
  #         5, 
  #         "まろゆき", 
  #         true
  #       ], 
  #       [
  #         1, 
  #         "ひろゆき", 
  #         true
  #       ]
  #     ]
  #   ]
  # ]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log