Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
query-options.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 #ifndef IMPALA_SERVICE_QUERY_OPTIONS_H
16 #define IMPALA_SERVICE_QUERY_OPTIONS_H
17 
18 #include <string>
19 #include <map>
20 
21 #include "common/status.h"
22 
24 
25 namespace impala {
26 
27 class TQueryOptions;
28 
30 void TQueryOptionsToMap(const TQueryOptions& query_options,
31  std::map<std::string, std::string>* configuration);
32 
35 Status SetQueryOption(const std::string& key, const std::string& value,
36  TQueryOptions* query_options);
37 
41 Status ParseQueryOptions(const std::string& options, TQueryOptions* query_options);
42 
43 }
44 
45 #endif
void TQueryOptionsToMap(const TQueryOptions &query_options, std::map< std::string, std::string > *configuration)
Converts a TQueryOptions struct into a map of key, value pairs.
Status ParseQueryOptions(const std::string &options, TQueryOptions *query_options)
void SetQueryOption(TImpalaQueryOptions::type opt, const T &opt_val, TExecuteStatementReq *exec_stmt_req)
Definition: child-query.cc:102