1 | #pragma once |
---|---|
2 | |
3 | #include <vector> |
4 | #include <Columns/IColumn.h> |
5 | #include <common/Types.h> |
6 | |
7 | |
8 | namespace DB |
9 | { |
10 | class IBlockOutputStream; |
11 | using BlockOutputStreamPtr = std::shared_ptr<IBlockOutputStream>; |
12 | |
13 | struct DictionaryStructure; |
14 | |
15 | /// Write keys to block output stream. |
16 | |
17 | /// For simple key |
18 | void formatIDs(BlockOutputStreamPtr & out, const std::vector<UInt64> & ids); |
19 | |
20 | /// For composite key |
21 | void formatKeys( |
22 | const DictionaryStructure & dict_struct, |
23 | BlockOutputStreamPtr & out, |
24 | const Columns & key_columns, |
25 | const std::vector<size_t> & requested_rows); |
26 | |
27 | } |
28 |