Apache.Hadoop.Hbase.Thrift.Hbase.Processor.Process C# (CSharp) Method

Process() public method

public Process ( TProtocol iprot, TProtocol oprot ) : bool
iprot Thrift.Protocol.TProtocol
oprot Thrift.Protocol.TProtocol
return bool
            public bool Process(TProtocol iprot, TProtocol oprot)
            {
                TMessage msg = iprot.ReadMessageBegin();
                ProcessFunction fn = processMap_[msg.Name];
                if (fn == null) {
                  TProtocolUtil.Skip(iprot, TType.Struct);
                  iprot.ReadMessageEnd();
                  TApplicationException x = new TApplicationException (TApplicationException.ExceptionType.UnknownMethod, "Invalid method name: '" + msg.Name + "'");
                  oprot.WriteMessageBegin(new TMessage(msg.Name, TMessageType.Exception, msg.SeqID));
                  x.Write(oprot);
                  oprot.WriteMessageEnd();
                  oprot.Transport.Flush();
                  return true;
                }
                fn(msg.SeqID, iprot, oprot);
                return true;
            }