Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7767

[C++] Add a facility to create a Bitmap buffer from an data pointer with a specified sentinel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++, R
    • None

    Description

      This is a special case for R and other cases where the null value is represented by a sentinel. This would read the data pointer and return a null bitmap buffer where bits are activate for every row where the value is not the sentinel value. If no sentinel is encountered, return nullptr.

      template <typename ArrowType, typename CType = ArrowType::c_type>
      Result<std::shared_ptr<Buffer>> NullBitmapFromSentinelData(MemoryPool* pool, const CType* data, size_t n_values, CType sentinel_value);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            fsaintjacques Francois Saint-Jacques
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: