1 /* 2 * Copyright 2009-2017 Alibaba Cloud All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #pragma once 18 #include <alibabacloud/oss/OssResult.h> 19 #include <memory> 20 #include <iostream> 21 22 namespace AlibabaCloud 23 { 24 namespace OSS 25 { 26 class ALIBABACLOUD_OSS_EXPORT CreateSelectObjectMetaResult : public OssResult 27 { 28 public: 29 CreateSelectObjectMetaResult(); 30 CreateSelectObjectMetaResult( 31 const std::string& bucket, 32 const std::string& key, 33 const std::string& requestId, 34 const std::shared_ptr<std::iostream>& data); 35 CreateSelectObjectMetaResult& operator=(const std::shared_ptr<std::iostream>& data); 36 Bucket()37 const std::string& Bucket() const { return bucket_; } Key()38 const std::string& Key() const { return key_; } Offset()39 uint64_t Offset() const { return offset_; } TotalScanned()40 uint64_t TotalScanned() const { return totalScanned_; } Status()41 uint32_t Status() const { return status_; } SplitsCount()42 uint32_t SplitsCount() const { return splitsCount_; } RowsCount()43 uint64_t RowsCount() const { return rowsCount_; } ColsCount()44 uint32_t ColsCount() const { return colsCount_; } ErrorMessage()45 const std::string& ErrorMessage() const { return errorMessage_; } 46 47 private: 48 std::string bucket_; 49 std::string key_; 50 uint64_t offset_; 51 uint64_t totalScanned_; 52 uint32_t status_; 53 uint32_t splitsCount_; 54 uint64_t rowsCount_; 55 uint32_t colsCount_; 56 std::string errorMessage_; 57 }; 58 59 } 60 } 61