Kouhei Sutou
null+****@clear*****
Sun Aug 30 14:06:09 JST 2015
Kouhei Sutou 2015-08-30 14:06:09 +0900 (Sun, 30 Aug 2015) New Revision: acd0e08bbd04f6d304501edbfbeb18a7b6e9316f https://github.com/groonga/groonga/commit/acd0e08bbd04f6d304501edbfbeb18a7b6e9316f Message: doc: add labels Modified files: doc/source/reference/grn_expr/script_syntax.rst Modified: doc/source/reference/grn_expr/script_syntax.rst (+20 -0) =================================================================== --- doc/source/reference/grn_expr/script_syntax.rst 2015-08-30 13:50:59 +0900 (8310f35) +++ doc/source/reference/grn_expr/script_syntax.rst 2015-08-30 14:06:09 +0900 (b9423a0) @@ -462,11 +462,15 @@ Here is a simple example. The expression matches records that ``content`` column value has the word ``fast`` but doesn't have the word ``mroonga``. +.. _script-syntax-bitwise-operators: + Bitwise operators ^^^^^^^^^^^^^^^^^ Here are bitwise operators. +.. _script-syntax-bitwise-not: + Bitwise NOT operator """""""""""""""""""" @@ -483,6 +487,8 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is equal to ``5`` because bitwise NOT of ``5`` is equal to ``-6``. +.. _script-syntax-bitwise-and: + Bitwise AND operator """""""""""""""""""" @@ -501,6 +507,8 @@ number because bitwise AND between an even number and ``1`` is equal to ``1`` and bitwise AND between an odd number and ``1`` is equal to ``0``. +.. _script-syntax-bitwise-or: + Bitwise OR operator ^^^^^^^^^^^^^^^^^^^ @@ -517,6 +525,8 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is equal to ``5`` (= ``1 | 4``). +.. _script-syntax-bitwise-xor: + Bitwise XOR operator ^^^^^^^^^^^^^^^^^^^^ @@ -533,11 +543,15 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is equal to ``5`` (= ``10 ^ 15``). +.. _script-syntax-shift-operators: + Shift operators ^^^^^^^^^^^^^^^ Here are shift operators. +.. _script-syntax-shift-left: + Left shift operator """"""""""""""""""" @@ -555,6 +569,8 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is equal to ``10`` (= ``5 << 1``). +.. _script-syntax-shift-signed-right: + Signed right shift operator """"""""""""""""""""""""""" @@ -572,6 +588,8 @@ Here is a simple example. The expression matches records that ``n_likes`` column value is equal to ``5`` (= ``-(-10 >> 1)`` = ``-(-5)``). +.. _script-syntax-shift-unsigned-right: + Unsigned right shift operator """"""""""""""""""""""""""""" @@ -799,6 +817,8 @@ is 10. So the expression ``1 & 10`` is evaluated and stored to ``_score`` column as the execution result. +.. _script-syntax-bitwise-or-assign: + Bitwise OR assignment operator ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------- next part -------------- HTML����������������������������... 다운로드