0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
RangeServerCommandInterpreter.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; version 3 of the
9  * License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef Tools_client_rangeserver_RangeServerCommandInterpreter_h
23 #define Tools_client_rangeserver_RangeServerCommandInterpreter_h
24 
25 #include "TableInfo.h"
26 
28 
29 #include <Hyperspace/Session.h>
30 
34 
35 #include <AsyncComm/Comm.h>
36 
37 #include <Common/String.h>
38 
39 #include <unordered_map>
40 
41 namespace Tools {
42 namespace client {
43 namespace rangeserver {
44 
45  using namespace Lib;
46 
48  public:
50  const sockaddr_in addr, RangeServer::ClientPtr &);
51 
52  int execute_line(const String &line) override;
53 
54  private:
55 
56  void display_scan_data(const SerializedKey &key, const ByteString &value,
57  SchemaPtr &schema_ptr);
58 
61  struct sockaddr_in m_addr;
63  typedef std::unordered_map<String, TableInfo *> TableMap;
64  TableMap m_table_map;
67  };
68 
69 }}}
70 
71 #endif // Tools_client_rangeserver_RangeServerCommandInterpreter_h
std::string String
A String is simply a typedef to std::string.
Definition: String.h:44
Declarations for RangeServerClient.
A class managing one or more serializable ByteStrings.
Definition: ByteString.h:47
std::shared_ptr< Session > SessionPtr
Definition: Session.h:734
std::shared_ptr< Client > ClientPtr
Smart pointer to Client.
Definition: Client.h:233
Declarations for Comm.
A String class based on std::string.
Forward declarations.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
Definition: Schema.h:465
std::shared_ptr< NameIdMapper > NameIdMapperPtr
Smart pointer to NameIdMapper.
Definition: NameIdMapper.h:121