データ接続と統合Pipeline Builder の式Bitwise or

Bitwise or

サポート対象:バッチ、高速

Returns the bits set in either of two integral values. If either value is null, returns null.

式のカテゴリー: バイナリ

引数

  • Left: The first integral value.
    Expression<T1>
  • Right: The second integral value.
    Expression<T2>

型変数の制約: T1 に指定できる型:Byte | Integer | Long | Short、T2 に指定できる型:Byte | Integer | Long | Short

出力タイプ: Byte | Integer | Long | Short

例

例1:基本ケース

引数の値:

  • Left: 12
  • Right: 10

出力: 14


例2:基本ケース

引数の値:

  • Left: -16
  • Right: 3

出力: -13


例3:Null ケース

引数の値:

  • Left: null
  • Right: 10

出力: null


例4:Null ケース

引数の値:

  • Left: 12
  • Right: null

出力: null


例5:エッジケース

説明: The narrower value is widened to the type of the wider one.

引数の値:

  • Left: 12
  • Right: 10

出力: 14