Skip to content

Commit

Permalink
Add ReserveData(int64_t) and value_data_capacity() for methods for Bi…
Browse files Browse the repository at this point in the history
…naryBuilder
  • Loading branch information
xuepanchen authored Jan 16, 2018
1 parent 5ebfb32 commit e0434e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/src/arrow/builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,13 @@ class ARROW_EXPORT BinaryBuilder : public ArrayBuilder {

Status Init(int64_t elements) override;
Status Resize(int64_t capacity) override;
Status ReserveData(int64_t bytes) override;
Status FinishInternal(std::shared_ptr<ArrayData>* out) override;

/// \return size of values buffer so far
int64_t value_data_length() const { return value_data_builder_.length(); }
/// \return capacity of values buffer
int64_t value_data_capacity() const { return value_data_builder_.capacity(); }

/// Temporary access to a value.
///
Expand Down

0 comments on commit e0434e6

Please sign in to comment.