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