mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Inline some functions #3223
This commit is contained in:
parent
681929cbda
commit
7b24ad570c
@ -57,7 +57,7 @@ const String & JSONEachRowRowInputStream::columnName(size_t i) const
|
||||
return header.getByPosition(i).name;
|
||||
}
|
||||
|
||||
size_t JSONEachRowRowInputStream::columnIndex(const StringRef & name, size_t key_index)
|
||||
inline size_t JSONEachRowRowInputStream::columnIndex(const StringRef & name, size_t key_index)
|
||||
{
|
||||
/// Optimization by caching the order of fields (which is almost always the same)
|
||||
/// and a quick check to match the next expected field, instead of searching the hash table.
|
||||
@ -112,7 +112,7 @@ StringRef JSONEachRowRowInputStream::readColumnName(ReadBuffer & buf)
|
||||
}
|
||||
|
||||
|
||||
static void skipColonDelimeter(ReadBuffer & istr)
|
||||
static inline void skipColonDelimeter(ReadBuffer & istr)
|
||||
{
|
||||
skipWhitespaceIfAny(istr);
|
||||
assertChar(':', istr);
|
||||
@ -145,7 +145,7 @@ void JSONEachRowRowInputStream::readField(size_t index, MutableColumns & columns
|
||||
read_columns[index] = true;
|
||||
}
|
||||
|
||||
bool JSONEachRowRowInputStream::advanceToNextKey(size_t key_index)
|
||||
inline bool JSONEachRowRowInputStream::advanceToNextKey(size_t key_index)
|
||||
{
|
||||
skipWhitespaceIfAny(istr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user