text: // This autogenerated skeleton file illustrates how to build a server.
  // You should copy it to another filename to avoid overwriting it.
  
  #include "TRecommendationService.h"
  #include <thrift/protocol/TBinaryProtocol.h>
  #include <thrift/server/TSimpleServer.h>
  #include <thrift/transport/TServerSocket.h>
  #include <thrift/transport/TBufferTransports.h>
  
  using namespace ::apache::thrift;
  using namespace ::apache::thrift::protocol;
  using namespace ::apache::thrift::transport;
  using namespace ::apache::thrift::server;
  
  using namespace  ::gen;
  
  class TRecommendationServiceHandler : virtual public TRecommendationServiceIf {
   public:
    TRecommendationServiceHandler() {
      // Your initialization goes here
    }
  
    void retrieve_recommended_posts(std::vector<TRecPost> & _return, const std::string& keyword, const int32_t search_size, const int32_t return_size) {
      // Your implementation goes here
      printf("retrieve_recommended_posts\n");
    }
  
  };
  
  int main(int argc, char **argv) {
    int port = 9090;
    ::std::shared_ptr<TRecommendationServiceHandler> handler(new TRecommendationServiceHandler());
    ::std::shared_ptr<TProcessor> processor(new TRecommendationServiceProcessor(handler));
    ::std::shared_ptr<TServerTransport> serverTransport(new TServerSocket(port));
    ::std::shared_ptr<TTransportFactory> transportFactory(new TBufferedTransportFactory());
    ::std::shared_ptr<TProtocolFactory> protocolFactory(new TBinaryProtocolFactory());
  
    TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
    server.serve();
    return 0;
  }
  
  