Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3483

LINQ3: translate bit mask comparison expressions to a filter

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.14.0
    • None
    • LINQ3
    • None

    Description

      Translate:

      document.F & mask == 0
      document.F & mask == mask
      document.F & mask != 0
      document.F & mask != mask 

      to the filter expressions:

      { F : { $bitsAllClear : mask } }
      { F : { $bitsAllSet : mask } }
      { F : { $bitsAnySet : mask } }
      { F : { $bitsAnyClear : mask } }

      where `mask` is a constant of the same type as `F`

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: