ClickHouse/dbms/include/DB/Functions/Conditional/StringEvaluator.h

23 lines
536 B
C++
Raw Normal View History

2016-04-18 14:31:32 +00:00
#pragma once
#include <DB/Core/Block.h>
#include <DB/Core/ColumnNumbers.h>
namespace DB
{
namespace Conditional
{
struct StringEvaluator final
{
/// The tracker parameter is an index to a column that tracks the originating column of each value of
/// the result column. Calling this function with result == tracker means that no such tracking is
/// required, which happens if multiIf is called with no nullable parameters.
static bool perform(Block & block, const ColumnNumbers & args, size_t result, size_t tracker);
2016-04-18 14:31:32 +00:00
};
}
}