File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
components/core/src/clp_s Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,10 @@ void SchemaReader::initialize_filter(FilterClass* filter) {
259
259
filter->init (this , m_schema_id, m_columns);
260
260
}
261
261
262
+ void SchemaReader::initialize_filter_with_column_map (FilterClass* filter) {
263
+ filter->init (this , m_schema_id, m_column_map);
264
+ }
265
+
262
266
void SchemaReader::generate_local_tree (int32_t global_id) {
263
267
std::stack<int32_t > global_id_stack;
264
268
global_id_stack.emplace (global_id);
Original file line number Diff line number Diff line change @@ -32,6 +32,19 @@ class FilterClass {
32
32
std::vector<BaseColumnReader*> const & column_readers
33
33
) = 0;
34
34
35
+ /* *
36
+ * Initializes the filter with a column map.
37
+ * Note: the column map only contains the ordered columns in a schema.
38
+ * @param reader
39
+ * @param schema_id
40
+ * @param column_map
41
+ */
42
+ virtual void init (
43
+ SchemaReader* reader,
44
+ int32_t schema_id,
45
+ std::unordered_map<int32_t , BaseColumnReader*> const & column_map
46
+ ) {}
47
+
35
48
/* *
36
49
* Filters the message
37
50
* @param cur_message
@@ -180,6 +193,13 @@ class SchemaReader {
180
193
*/
181
194
void initialize_filter (FilterClass* filter);
182
195
196
+ /* *
197
+ * Initializes the filter with a column map.
198
+ * Note: the column map only contains the ordered columns in a schema.
199
+ * @param filter
200
+ */
201
+ void initialize_filter_with_column_map (FilterClass* filter);
202
+
183
203
/* *
184
204
* Marks a column as timestamp
185
205
* @param column_reader
You can’t perform that action at this time.
0 commit comments