@@ -34,8 +34,8 @@ class ColumnDate : public Column {
3434 // / Get Raw Vector Contents
3535 std::vector<uint16_t >& GetWritableData ();
3636
37- // / Increase the capacity of the column
38- void Reserve (size_t new_cap);
37+ // / Increase the capacity of the column for large block insertion.
38+ void Reserve (size_t new_cap) override ;
3939
4040 // / Returns the capacity of the column
4141 size_t Capacity () const ;
@@ -79,9 +79,6 @@ class ColumnDate32 : public Column {
7979 // / The implementation is fundamentally wrong, ignores timezones, leap years and daylight saving.
8080 std::time_t At (size_t n) const ;
8181
82- // / Appends content of given column to the end of current one.
83- void Append (ColumnRef column) override ;
84-
8582 inline std::time_t operator [] (size_t n) const { return At (n); }
8683
8784 // / Do append data as is -- number of day in Unix epoch (32bit signed), no conversions performed.
@@ -91,12 +88,16 @@ class ColumnDate32 : public Column {
9188 // / Get Raw Vector Contents
9289 std::vector<int32_t >& GetWritableData ();
9390
94- // / Increase the capacity of the column
95- void Reserve (size_t new_cap);
96-
9791 // / Returns the capacity of the column
9892 size_t Capacity () const ;
9993
94+ public:
95+ // / Increase the capacity of the column for large block insertion.
96+ void Reserve (size_t new_cap) override ;
97+
98+ // / Appends content of given column to the end of current one.
99+ void Append (ColumnRef column) override ;
100+
100101 // / Loads column data from input stream.
101102 bool LoadBody (InputStream* input, size_t rows) override ;
102103
@@ -148,13 +149,13 @@ class ColumnDateTime : public Column {
148149 // / Get Raw Vector Contents
149150 std::vector<uint32_t >& GetWritableData ();
150151
151- // / Increase the capacity of the column
152- void Reserve (size_t new_cap);
153-
154152 // / Returns the capacity of the column
155153 size_t Capacity () const ;
156154
157155public:
156+ // / Increase the capacity of the column for large block insertion.
157+ void Reserve (size_t new_cap) override ;
158+
158159 // / Appends content of given column to the end of current one.
159160 void Append (ColumnRef column) override ;
160161
@@ -205,6 +206,9 @@ class ColumnDateTime64 : public Column {
205206 std::string Timezone () const ;
206207
207208public:
209+ // / Increase the capacity of the column for large block insertion.
210+ void Reserve (size_t new_cap) override ;
211+
208212 // / Appends content of given column to the end of current one.
209213 void Append (ColumnRef column) override ;
210214
0 commit comments