Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71c003e

Browse files
emkornfieldwesm
authored andcommitted
ARROW-4800: [C++] Introduce a Result<T> class
- Mostly an adaptation of StatusOr from google/asylo (both header and unittests). - Demonstrate usage in ipc/writer* - If this PR is accepted I can do a follow-up PR to port over useful testing utilities. Author: Micah Kornfield <[email protected]> Author: emkornfield <[email protected]> Closes apache#4501 from emkornfield/error_or and squashes the following commits: 82e48c453 <Micah Kornfield> fix linter. Add unittest. aad79b183 <Micah Kornfield> rename to Return 1d7dbfbcd <Micah Kornfield> Use bkietz's suggestion. cleanup test d8e80431c <Micah Kornfield> fix compile errors cc626079c <Micah Kornfield> try non anonyous namespace 86e43ac89 <Micah Kornfield> export before 8a4b3ccf3 <Micah Kornfield> try explicit instantation for msvc f12f6d027 <Micah Kornfield> Revert "remove ARROW_EXPORT from test and try add link to gtest_main" 9581b05b1 <Micah Kornfield> remove ARROW_EXPORT from test and try add link to gtest_main 7a21e577a <Micah Kornfield> try exporting private test classes for appveyor 0b44389da <Micah Kornfield> fix format de9d2d0d9 <Micah Kornfield> remove duplicate code. fix format 504fcd7bf <emkornfield> Update cpp/src/arrow/error_or.h 31d9906c5 <Micah Kornfield> use vendored variant aa540da09 <Micah Kornfield> fix append 6f459a5f9 <Micah Kornfield> address review comments 7a1e54de4 <Micah Kornfield> Add Arrow export 2886733fb <Micah Kornfield> use ARROW_RETURN_NOT_OK f7ed04f00 <Micah Kornfield> address comments 3e2b3691a <Micah Kornfield> follow recommendation of docs for macro d5e43d034 <Micah Kornfield> ARROW-4800: Introduce an ErrorOr class
1 parent 55348bf commit 71c003e

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

LICENSE.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,3 +882,54 @@ This project include code from mingw-w64.
882882
Copyright (c) 2009 - 2013 by the mingw-w64 project
883883
Homepage: https://mingw-w64.org
884884
License: Zope Public License (ZPL) Version 2.1.
885+
886+
---------------------------------------------------------------------------------
887+
888+
This project include code from Google's Asylo project.
889+
890+
* cpp/src/arrow/result.h is based on status_or.h
891+
892+
Copyright (c) Copyright 2017 Asylo authors
893+
Homepage: https://asylo.dev/
894+
License: Apache 2.0
895+
896+
---------------------------------------------------------------------------------
897+
898+
This project includes code from Google's protobuf project
899+
900+
* cpp/src/arrow/result.h ARROW_ASSIGN_OR_RAISE is based off ASSIGN_OR_RETURN
901+
902+
Copyright 2008 Google Inc. All rights reserved.
903+
Homepage: https://developers.google.com/protocol-buffers/
904+
License:
905+
906+
Redistribution and use in source and binary forms, with or without
907+
modification, are permitted provided that the following conditions are
908+
met:
909+
910+
* Redistributions of source code must retain the above copyright
911+
notice, this list of conditions and the following disclaimer.
912+
* Redistributions in binary form must reproduce the above
913+
copyright notice, this list of conditions and the following disclaimer
914+
in the documentation and/or other materials provided with the
915+
distribution.
916+
* Neither the name of Google Inc. nor the names of its
917+
contributors may be used to endorse or promote products derived from
918+
this software without specific prior written permission.
919+
920+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
921+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
922+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
923+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
924+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
925+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
926+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
927+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
928+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
929+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
930+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
931+
932+
Code generated by the Protocol Buffer compiler is owned by the owner
933+
of the input file used when generating it. This code is not
934+
standalone and requires a support library to be linked with it. This
935+
support library is itself covered by the above license.

0 commit comments

Comments
 (0)