public ProtocolBufferEncoder(PipelineHandler innerHandler) : base(innerHandler)
        {
            EncoderMap = new Dictionary <string, RequestEncoder> {
                { "/CreateTable", EncodeCreateTable },
                { "/DeleteTable", EncodeDeleteTable },
                { "/UpdateTable", EncodeUpdateTable },
                { "/DescribeTable", EncodeDescribeTable },
                { "/ListTable", EncodeListTable },

                { "/PutRow", EncodePutRow },
                { "/GetRow", EncodeGetRow },
                { "/UpdateRow", EncodeUpdateRow },
                { "/DeleteRow", EncodeDeleteRow },

                { "/BatchWriteRow", EncodeBatchWriteRow },
                { "/BatchGetRow", EncodeBatchGetRow },
                { "/GetRange", EncodeGetRange },

                { "/ListSearchIndex", EncodeListSearchIndex },
                { "/CreateSearchIndex", EncodeCreateSearchIndex },
                { "/DescribeSearchIndex", EncodeDescribeSearchIndex },
                { "/DeleteSearchIndex", EncodeDeleteSearchIndex },
                { "/Search", EncodeSearch },

                { "/CreateIndex", EncodeCreateGlobalIndex },
                { "/DropIndex", EncodeDeleteGlobalIndex },
            };
        }
        public ProtoBufferDecoder(PipelineHandler innerHandler) : base(innerHandler)
        {
            DecoderMap = new Dictionary <string, ResponseDecoder>()
            {
                { "/CreateTable", DecodeCreateTable },
                { "/DeleteTable", DecodeDeleteTable },
                { "/UpdateTable", DecodeUpdateTable },
                { "/DescribeTable", DecodeDescribeTable },
                { "/ListTable", DecodeListTable },

                { "/PutRow", DecodePutRow },
                { "/GetRow", DecodeGetRow },
                { "/UpdateRow", DecodeUpdateRow },
                { "/DeleteRow", DecodeDeleteRow },

                { "/BatchWriteRow", DecodeBatchWriteRow },
                { "/BatchGetRow", DecodeBatchGetRow },
                { "/GetRange", DecodeGetRange },
            };
        }
Beispiel #3
0
 public HttpHeaderHandler(PipelineHandler innerHandler) : base(innerHandler)
 {
 }
Beispiel #4
0
 public RetryHandler(PipelineHandler innerHandler) : base(innerHandler)
 {
 }
 public ErrorHandler(PipelineHandler innerHandler) : base(innerHandler)
 {
 }