C++中的超表实例

C++中的超表实例,c++,hypertable,C++,Hypertable,我可以在哪里找到hypertable的示例代码,或者任何人都可以用c++发布hypertable的示例(如果您是指 否则,这里是 如果您是指 否则,这里是 您可以使用此项或查看以下内容: 并下载超表格项目::请参见: 并下载hypertable项目:: 将其和/opt/hypertable/current/include/ThriftBroker/gen cpp文件夹下的 Client_constants.cpp、Client_types.cpp、ClientService.cpp、Hql_co

我可以在哪里找到hypertable的示例代码,或者任何人都可以用c++发布hypertable的示例(如果您是指

否则,这里是

如果您是指

否则,这里是

您可以使用此项或查看以下内容: 并下载超表格项目::

请参见: 并下载hypertable项目::

将其和/opt/hypertable/current/include/ThriftBroker/gen cpp文件夹下的 Client_constants.cpp、Client_types.cpp、ClientService.cpp、Hql_constants.cpp、Hql_types.cpp、HqlService.cpp一起编译

将其和/opt/hypertable/current/include/ThriftBroker/gen cpp文件夹下的
Client_constants.cpp、Client_types.cpp、ClientService.cpp、Hql_constants.cpp、Hql_types.cpp、HqlService.cpp一起编译

我读了这两件事,我需要使用C++客户端更新我的值,所以有任何一个C++客户端程序读取这两个东西,我需要使用C++客户端更新我的值,所以有任何C++客户端程序样本
#ifndef BOOST_FOREACH
#define BOOST_FOREACH 0
#endif

#include "Common/Compat.h"
#include "Common/System.h"

#include <arpa/inet.h>
#include <iostream>
#include <fstream>
#include "ThriftBroker/Client.h"
#include "ThriftBroker/gen-cpp/HqlService.h"
#include "ThriftBroker/ThriftHelper.h"
#include "ThriftBroker/SerializedCellsReader.h"

using namespace Hypertable;
using namespace Hypertable::ThriftGen;

int main (int argc, char **argv)
{
    Thrift::Client *client = new Thrift::Client("localhost", 38080);
    if (!client->namespace_exists("/"))
    {
        delete client;
        return 0;
    }
   Namespace ns = client->namespace_open("/");
   HqlResult result;
   client->hql_query(result, ns, "select * from foo");
   std::cout << result << std::endl;
   client->namespace_close(ns);
   delete client;
   return 0;
}