Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
catalog-util.h
Go to the documentation of this file.
1 // Copyright 2012 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 
16 #ifndef IMPALA_CATALOG_CATALOG_UTIL_H
17 #define IMPALA_CATALOG_CATALOG_UTIL_H
18 
19 #include "gen-cpp/CatalogObjects_types.h"
20 
21 namespace impala {
22 
24 
25 class Status;
26 
29 TCatalogObjectType::type TCatalogObjectTypeFromName(const std::string& name);
30 
37 Status TCatalogObjectFromEntryKey(const std::string& key,
38  TCatalogObject* catalog_object);
39 
42 Status TCatalogObjectFromObjectName(const TCatalogObjectType::type& object_type,
43  const std::string& object_name, TCatalogObject* catalog_object);
44 
49 std::string TCatalogObjectToEntryKey(const TCatalogObject& catalog_object);
50 
51 }
52 
53 #endif
Status TCatalogObjectFromObjectName(const TCatalogObjectType::type &object_type, const string &object_name, TCatalogObject *catalog_object)
Definition: catalog-util.cc:68
string TCatalogObjectToEntryKey(const TCatalogObject &catalog_object)
TCatalogObjectType::type TCatalogObjectTypeFromName(const string &name)
Definition: catalog-util.cc:29
Status TCatalogObjectFromEntryKey(const string &key, TCatalogObject *catalog_object)
Definition: catalog-util.cc:53
string name
Definition: cpu-info.cc:50