@@ -27,19 +27,17 @@ class ColumnDate : public Column {
2727 void AppendRaw (uint16_t value);
2828 uint16_t RawAt (size_t n) const ;
2929
30- // / Swap two Elements/rows in the column
31- void SwapElements ( size_t pos1, size_t pos2) ;
30+ // / Appends content of given column to the end of current one.
31+ void Append (ColumnRef column) override ;
3232
33- // / Test if the value at position 1 is greater than the value at position 2
34- // / No range checking is performed for performance
35- bool CompareElementsGT (size_t pos1, size_t pos2) const ;
33+ // / Get Raw Vector Contents
34+ std::vector<uint16_t > & GetRawVector ();
3635
37- // / Test if the value at position 1 is less than the value at position 2
38- // / No range checking is performed for performance
39- bool CompareElementsLT (size_t pos1, size_t pos2) const ;
36+ // / Increase the capacity of the column
37+ void Reserve (size_t new_cap);
4038
41- // / Appends content of given column to the end of current one.
42- void Append (ColumnRef column) override ;
39+ // / Returns the capacity of the column
40+ size_t Capacity () const ;
4341
4442 // / Loads column data from input stream.
4543 bool LoadBody (InputStream* input, size_t rows) override ;
@@ -53,12 +51,6 @@ class ColumnDate : public Column {
5351 // / Returns count of rows in the column.
5452 size_t Size () const override ;
5553
56- // / Increase the capacity of the column
57- void Reserve (size_t new_cap) override ;
58-
59- // / Returns the capacity of the column
60- size_t Capacity () const override ;
61-
6254 // / Makes slice of the current column.
6355 ColumnRef Slice (size_t begin, size_t len) const override ;
6456 ColumnRef CloneEmpty () const override ;
@@ -94,16 +86,14 @@ class ColumnDate32 : public Column {
9486 void AppendRaw (int32_t value);
9587 int32_t RawAt (size_t n) const ;
9688
97- // / Swap two Elements/rows in the column
98- void SwapElements ( size_t pos1, size_t pos2 );
89+ // / Get Raw Vector Contents
90+ std::vector< int32_t > & GetRawVector ( );
9991
100- // / Test if the value at position 1 is greater than the value at position 2
101- // / No range checking is performed for performance
102- bool CompareElementsGT (size_t pos1, size_t pos2) const ;
92+ // / Increase the capacity of the column
93+ void Reserve (size_t new_cap);
10394
104- // / Test if the value at position 1 is less than the value at position 2
105- // / No range checking is performed for performance
106- bool CompareElementsLT (size_t pos1, size_t pos2) const ;
95+ // / Returns the capacity of the column
96+ size_t Capacity () const ;
10797
10898 // / Loads column data from input stream.
10999 bool LoadBody (InputStream* input, size_t rows) override ;
@@ -117,12 +107,6 @@ class ColumnDate32 : public Column {
117107 // / Returns count of rows in the column.
118108 size_t Size () const override ;
119109
120- // / Increase the capacity of the column
121- void Reserve (size_t new_cap) override ;
122-
123- // / Returns the capacity of the column
124- size_t Capacity () const override ;
125-
126110 // / Makes slice of the current column.
127111 ColumnRef Slice (size_t begin, size_t len) const override ;
128112 ColumnRef CloneEmpty () const override ;
@@ -156,16 +140,14 @@ class ColumnDateTime : public Column {
156140 // / Timezone associated with a data column.
157141 std::string Timezone () const ;
158142
159- // / Swap two Elements/rows in the column
160- void SwapElements ( size_t pos1, size_t pos2 );
143+ // / Get Raw Vector Contents
144+ std::vector< uint32_t > & GetRawVector ( );
161145
162- // / Test if the value at position 1 is greater than the value at position 2
163- // / No range checking is performed for performance
164- bool CompareElementsGT (size_t pos1, size_t pos2) const ;
146+ // / Increase the capacity of the column
147+ void Reserve (size_t new_cap);
165148
166- // / Test if the value at position 1 is less than the value at position 2
167- // / No range checking is performed for performance
168- bool CompareElementsLT (size_t pos1, size_t pos2) const ;
149+ // / Returns the capacity of the column
150+ size_t Capacity () const ;
169151
170152public:
171153 // / Appends content of given column to the end of current one.
@@ -183,12 +165,6 @@ class ColumnDateTime : public Column {
183165 // / Returns count of rows in the column.
184166 size_t Size () const override ;
185167
186- // / Increase the capacity of the column
187- void Reserve (size_t new_cap) override ;
188-
189- // / Returns the capacity of the column
190- size_t Capacity () const override ;
191-
192168 // / Makes slice of the current column.
193169 ColumnRef Slice (size_t begin, size_t len) const override ;
194170 ColumnRef CloneEmpty () const override ;
@@ -223,17 +199,6 @@ class ColumnDateTime64 : public Column {
223199 // / Timezone associated with a data column.
224200 std::string Timezone () const ;
225201
226- // / Swap two Elements/rows in the column
227- void SwapElements (size_t pos1, size_t pos2);
228-
229- // / Test if the value at position 1 is greater than the value at position 2
230- // / No range checking is performed for performance
231- bool CompareElementsGT (size_t pos1, size_t pos2) const ;
232-
233- // / Test if the value at position 1 is less than the value at position 2
234- // / No range checking is performed for performance
235- bool CompareElementsLT (size_t pos1, size_t pos2) const ;
236-
237202public:
238203 // / Appends content of given column to the end of current one.
239204 void Append (ColumnRef column) override ;
@@ -250,12 +215,6 @@ class ColumnDateTime64 : public Column {
250215 // / Returns count of rows in the column.
251216 size_t Size () const override ;
252217
253- // / Increase the capacity of the column
254- void Reserve (size_t new_cap) override ;
255-
256- // / Returns the capacity of the column
257- size_t Capacity () const override ;
258-
259218 // / Makes slice of the current column.
260219 ColumnRef Slice (size_t begin, size_t len) const override ;
261220 ColumnRef CloneEmpty () const override ;
0 commit comments