Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hs2-util.h
Go to the documentation of this file.
1 // Copyright 2014 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "gen-cpp/ImpalaHiveServer2Service.h"
16 #include "gen-cpp/Frontend_types.h"
17 
18 namespace impala {
19 
22 
24 void TColumnValueToHS2TColumn(const TColumnValue& col_val, const TColumnType& type,
25  uint32_t row_idx, apache::hive::service::cli::thrift::TColumn* column);
26 
28 void ExprValueToHS2TColumn(const void* value, const TColumnType& type,
29  uint32_t row_idx, apache::hive::service::cli::thrift::TColumn* column);
30 
32 void TColumnValueToHS2TColumnValue(const TColumnValue& col_val, const TColumnType& type,
33  apache::hive::service::cli::thrift::TColumnValue* hs2_col_val);
34 
36 void ExprValueToHS2TColumnValue(const void* value, const TColumnType& type,
37  apache::hive::service::cli::thrift::TColumnValue* hs2_col_val);
38 
41 void StitchNulls(uint32_t num_rows_before, uint32_t num_rows_added, uint32_t start_idx,
42  const std::string& from, std::string* to);
43 
44 void PrintTColumnValue(const apache::hive::service::cli::thrift::TColumnValue& colval,
45  std::stringstream* out);
46 
47 }
void TColumnValueToHS2TColumnValue(const TColumnValue &col_val, const TColumnType &type, apache::hive::service::cli::thrift::TColumnValue *hs2_col_val)
For V1->V5.
void StitchNulls(uint32_t num_rows_before, uint32_t num_rows_added, uint32_t start_idx, const std::string &from, std::string *to)
void PrintTColumnValue(const apache::hive::service::cli::thrift::TColumnValue &colval, std::stringstream *out)
void TColumnValueToHS2TColumn(const TColumnValue &col_val, const TColumnType &type, uint32_t row_idx, apache::hive::service::cli::thrift::TColumn *column)
For V6->
void ExprValueToHS2TColumn(const void *value, const TColumnType &type, uint32_t row_idx, apache::hive::service::cli::thrift::TColumn *column)
For V6->
void ExprValueToHS2TColumnValue(const void *value, const TColumnType &type, apache::hive::service::cli::thrift::TColumnValue *hs2_col_val)
For V1->V5.