12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace OpenSearch\Generated\GeneralSearcher;
- /**
- * Autogenerated by Thrift Compiler (0.10.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
- use Thrift\Base\TBase;
- use Thrift\Type\TType;
- use Thrift\Type\TMessageType;
- use Thrift\Exception\TException;
- use Thrift\Exception\TProtocolException;
- use Thrift\Protocol\TProtocol;
- use Thrift\Protocol\TBinaryProtocolAccelerated;
- use Thrift\Exception\TApplicationException;
- interface GeneralSearcherServiceIf {
- }
- class GeneralSearcherServiceClient implements \OpenSearch\Generated\GeneralSearcher\GeneralSearcherServiceIf {
- protected $input_ = null;
- protected $output_ = null;
- protected $seqid_ = 0;
- public function __construct($input, $output=null) {
- $this->input_ = $input;
- $this->output_ = $output ? $output : $input;
- }
- }
- // HELPER FUNCTIONS AND STRUCTURES
- class GeneralSearcherServiceProcessor {
- protected $handler_ = null;
- public function __construct($handler) {
- $this->handler_ = $handler;
- }
- public function process($input, $output) {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $input->readMessageBegin($fname, $mtype, $rseqid);
- $methodname = 'process_'.$fname;
- if (!method_exists($this, $methodname)) {
- $input->skip(TType::STRUCT);
- $input->readMessageEnd();
- $x = new TApplicationException('Function '.$fname.' not implemented.', TApplicationException::UNKNOWN_METHOD);
- $output->writeMessageBegin($fname, TMessageType::EXCEPTION, $rseqid);
- $x->write($output);
- $output->writeMessageEnd();
- $output->getTransport()->flush();
- return;
- }
- $this->$methodname($rseqid, $input, $output);
- return true;
- }
- }
|