[Groonga-commit] groonga/groonga [master] doc: add execution examples for assignment operators

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Mar 29 16:56:05 JST 2013


HAYASHI Kentaro	2013-03-29 16:56:05 +0900 (Fri, 29 Mar 2013)

  New Revision: 28536d69ee23023276ffc934e0fc9d70233752a5
  https://github.com/groonga/groonga/commit/28536d69ee23023276ffc934e0fc9d70233752a5

  Message:
    doc: add execution examples for assignment operators

  Added files:
    doc/source/example/reference/grn_expr/script_syntax/simple_addition_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_and_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_division_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_left_shift_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_modulo_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_multiplication_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_or_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_subtraction_assignment_operator.log
    doc/source/example/reference/grn_expr/script_syntax/simple_xor_assignment_operator.log

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_addition_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_addition_assignment_operator.log    2013-03-29 16:56:05 +0900 (9115d0c)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score += n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         4
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         4
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         11
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         16
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         6
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_and_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_and_assignment_operator.log    2013-03-29 16:56:05 +0900 (fd7a100)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score &= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         1
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         1
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         0
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         1
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         1
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_division_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_division_assignment_operator.log    2013-03-29 16:56:05 +0900 (c40cef4)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score /= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         0
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         0
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         0
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         0
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         0
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_left_shift_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_left_shift_assignment_operator.log    2013-03-29 16:56:05 +0900 (e829b6a)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score <<= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         8
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         8
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         1024
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         32768
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         32
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_modulo_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_modulo_assignment_operator.log    2013-03-29 16:56:05 +0900 (b551753)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score %= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         1
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         1
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         1
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         1
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         1
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_multiplication_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_multiplication_assignment_operator.log    2013-03-29 16:56:05 +0900 (63463a7)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score *= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         3
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         3
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         10
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         15
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         5
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_or_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_or_assignment_operator.log    2013-03-29 16:56:05 +0900 (adc88aa)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score |= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         3
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         3
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         11
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         15
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         5
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_subtraction_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_subtraction_assignment_operator.log    2013-03-29 16:56:05 +0900 (09e046b)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score -= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         -2
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         -2
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         -9
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         -14
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         -4
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/grn_expr/script_syntax/simple_xor_assignment_operator.log (+56 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/grn_expr/script_syntax/simple_xor_assignment_operator.log    2013-03-29 16:56:05 +0900 (fd0728c)
@@ -0,0 +1,56 @@
+Execution example::
+
+  select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score ^= n_likes'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         5
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_score", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Good-bye Senna", 
+  #         3, 
+  #         2
+  #       ], 
+  #       [
+  #         "Good-bye Tritonn", 
+  #         3, 
+  #         2
+  #       ], 
+  #       [
+  #         "Groonga", 
+  #         10, 
+  #         11
+  #       ], 
+  #       [
+  #         "Mroonga", 
+  #         15, 
+  #         14
+  #       ], 
+  #       [
+  #         "The first post!", 
+  #         5, 
+  #         4
+  #       ]
+  #     ]
+  #   ]
+  # ]
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index