ClickHouse/dbms/include/DB/Columns/ColumnsCommon.h

23 lines
586 B
C++
Raw Normal View History

#pragma once
#include <DB/Columns/IColumn.h>
2017-03-09 00:56:38 +00:00
/// Common helper methods for implementation of different columns.
namespace DB
{
2017-03-09 00:56:38 +00:00
/// Counts how many bytes of `filt` are greater than zero.
size_t countBytesInFilter(const IColumn::Filter & filt);
2017-03-09 00:56:38 +00:00
/// The general implementation of `filter` function for ColumnArray and ColumnString.
template <typename T>
void filterArraysImpl(
const PaddedPODArray<T> & src_elems, const IColumn::Offsets_t & src_offsets,
PaddedPODArray<T> & res_elems, IColumn::Offsets_t & res_offsets,
const IColumn::Filter & filt, ssize_t result_size_hint);
}