コード例 #1
0
        internal override void BuildInternal()
        {
            Alachisoft.NosDB.Common.Protobuf.DataChunk.Builder protoDataChunk;
            protoDataChunk = new Alachisoft.NosDB.Common.Protobuf.DataChunk.Builder();

            protoDataChunk.SetChunkId(_dataChunkBuilder.ChunkId);
            protoDataChunk.SetReaderUId(_dataChunkBuilder.ReaderUID);

            foreach (IJSONDocument document in _dataChunkBuilder.Documents)
            {
                protoDataChunk.AddDocuments(document.ToString());
            }

            protoDataChunk.SetIsLastChunk(_dataChunkBuilder.IsLastChunk);

            _getDocumentsResponse.SetDataChunk(protoDataChunk);

            base._response.SetGetDocumentsResponse(_getDocumentsResponse);
            base._response.SetType(Alachisoft.NosDB.Common.Protobuf.Response.Types.Type.GET_DOCUMENTS);
        }