gopkg.in/rethinkdb/rethinkdb-go.v6@v6.2.2/query_bitwise.go (about)

     1  package rethinkdb
     2  
     3  import (
     4  	p "gopkg.in/rethinkdb/rethinkdb-go.v6/ql2"
     5  )
     6  
     7  // Rethinkdb proposal: https://github.com/rethinkdb/rethinkdb/pull/6534
     8  
     9  // Or performs a bitwise And.
    10  func (t Term) BitAnd(args ...interface{}) Term {
    11  	return constructMethodTerm(t, "BitAnd", p.Term_BIT_AND, args, map[string]interface{}{})
    12  }
    13  
    14  // Or performs a bitwise And.
    15  func BitAnd(args ...interface{}) Term {
    16  	return constructRootTerm("BitAnd", p.Term_BIT_AND, args, map[string]interface{}{})
    17  }
    18  
    19  // Or performs a bitwise Or.
    20  func (t Term) BitOr(args ...interface{}) Term {
    21  	return constructMethodTerm(t, "BitOr", p.Term_BIT_OR, args, map[string]interface{}{})
    22  }
    23  
    24  // Or performs a bitwise Or.
    25  func BitOr(args ...interface{}) Term {
    26  	return constructRootTerm("BitOr", p.Term_BIT_OR, args, map[string]interface{}{})
    27  }
    28  
    29  // Or performs a bitwise XOR.
    30  func (t Term) BitXor(args ...interface{}) Term {
    31  	return constructMethodTerm(t, "BitXor", p.Term_BIT_XOR, args, map[string]interface{}{})
    32  }
    33  
    34  // Or performs a bitwise XOR.
    35  func BitXor(args ...interface{}) Term {
    36  	return constructRootTerm("BitXor", p.Term_BIT_XOR, args, map[string]interface{}{})
    37  }
    38  
    39  // Or performs a bitwise complement.
    40  func (t Term) BitNot() Term {
    41  	return constructMethodTerm(t, "BitNot", p.Term_BIT_NOT, []interface{}{}, map[string]interface{}{})
    42  }
    43  
    44  // Or performs a bitwise complement.
    45  func BitNot(arg interface{}) Term {
    46  	return constructRootTerm("BitNot", p.Term_BIT_NOT, []interface{}{arg}, map[string]interface{}{})
    47  }
    48  
    49  // Or performs a bitwise shift arithmetic left.
    50  func (t Term) BitSal(args ...interface{}) Term {
    51  	return constructMethodTerm(t, "BitSal", p.Term_BIT_SAL, args, map[string]interface{}{})
    52  }
    53  
    54  // Or performs a bitwise shift arithmetic left.
    55  func BitSal(args ...interface{}) Term {
    56  	return constructRootTerm("BitSal", p.Term_BIT_SAL, args, map[string]interface{}{})
    57  }
    58  
    59  //// Or performs a bitwise left shift.
    60  //func (t Term) BitShl(args ...interface{}) Term {
    61  //	return constructMethodTerm(t, "BitShl", p.Term_BIT_SAL, args, map[string]interface{}{})
    62  //}
    63  //
    64  //// Or performs a bitwise left shift.
    65  //func BitShl(args ...interface{}) Term {
    66  //	return constructRootTerm("BitShl", p.Term_BIT_SAL, args, map[string]interface{}{})
    67  //}
    68  
    69  // Or performs a bitwise shift arithmetic right.
    70  func (t Term) BitSar(args ...interface{}) Term {
    71  	return constructMethodTerm(t, "BitSar", p.Term_BIT_SAR, args, map[string]interface{}{})
    72  }
    73  
    74  // Or performs a bitwise shift arithmetic right.
    75  func BitSar(args ...interface{}) Term {
    76  	return constructRootTerm("BitSar", p.Term_BIT_SAR, args, map[string]interface{}{})
    77  }
    78  
    79  //// Or performs a bitwise right shift.
    80  //func (t Term) BitShr(args ...interface{}) Term {
    81  //	return constructMethodTerm(t, "BitShr", p.Term_BIT_SHR, args, map[string]interface{}{})
    82  //}
    83  //
    84  //// Or performs a bitwise right shift.
    85  //func BitShr(args ...interface{}) Term {
    86  //	return constructRootTerm("BitShr", p.Term_BIT_SHR, args, map[string]interface{}{})
    87  //}