From e0434e61de1ff26df1856a57460cb95fb6863b25 Mon Sep 17 00:00:00 2001 From: Panchen Xue Date: Tue, 16 Jan 2018 16:46:55 -0500 Subject: [PATCH] Add ReserveData(int64_t) and value_data_capacity() for methods for BinaryBuilder --- cpp/src/arrow/builder.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/src/arrow/builder.h b/cpp/src/arrow/builder.h index ce7b8cd197da3..8f0daa67a8075 100644 --- a/cpp/src/arrow/builder.h +++ b/cpp/src/arrow/builder.h @@ -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* 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. ///