Skip to content

Add required methods to access inner builder for NullBufferBuilder #7002

@Chen-Yuan-Lai

Description

@Chen-Yuan-Lai

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

To replace NullBufferBuilder with BooleanBufferBuilder for optimization in DataFusion , some public methods are needed to be implemented in NullBufferBuilder with BooleanBufferBuilder to access inner builder.

Describe the solution you'd like

I would like to add methods like BooleanBufferBuilder :

  • get_bit()
  • capacity
  • truncate()

Describe alternatives you've considered

Other strategies below also may access the inner builder:

  • make the inner builder public
  • add a method that can return the reference of the inner builder

Additional context

Related issue

Use NullBufferBuilder instead of BooleanBufferBuilder for creating Null masks #14115

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions