/
usr
/
local
/
lib64
/
python3.6
/
site-packages
/
pyarrow
/
include
/
arrow
/
/usr/local/lib64/python3.6/site-packages/pyarrow/include/arrow
mkdir
upload
Name
Size
Mode
Actions
adapters/
-
0755
rm
array/
-
0755
rm
c/
-
0755
rm
compute/
-
0755
rm
csv/
-
0755
rm
dataset/
-
0755
rm
filesystem/
-
0755
rm
flight/
-
0755
rm
io/
-
0755
rm
ipc/
-
0755
rm
json/
-
0755
rm
python/
-
0755
rm
tensor/
-
0755
rm
testing/
-
0755
rm
util/
-
0755
rm
vendored/
-
0755
rm
api.h
2290
0644
edit
dl
rm
array.h
1822
0644
edit
dl
rm
buffer.h
19493
0644
edit
dl
rm
buffer_builder.h
16430
0644
edit
dl
rm
builder.h
1481
0644
edit
dl
rm
chunked_array.h
9361
0644
edit
dl
rm
compare.h
5165
0644
edit
dl
rm
config.h
2267
0644
edit
dl
rm
datum.h
8980
0644
edit
dl
rm
device.h
8771
0644
edit
dl
rm
extension_type.h
6284
0644
edit
dl
rm
memory_pool.h
6294
0644
edit
dl
rm
memory_pool_test.h
2694
0644
edit
dl
rm
pch.h
1286
0644
edit
dl
rm
pretty_print.h
4182
0644
edit
dl
rm
record_batch.h
9398
0644
edit
dl
rm
result.h
17845
0644
edit
dl
rm
scalar.h
21124
0644
edit
dl
rm
sparse_tensor.h
25205
0644
edit
dl
rm
status.h
15552
0644
edit
dl
rm
stl.h
18297
0644
edit
dl
rm
stl_allocator.h
4614
0644
edit
dl
rm
stl_iterator.h
4583
0644
edit
dl
rm
table.h
11313
0644
edit
dl
rm
table_builder.h
3924
0644
edit
dl
rm
tensor.h
8913
0644
edit
dl
rm
type.h
72157
0644
edit
dl
rm
type_fwd.h
18243
0644
edit
dl
rm
type_traits.h
32600
0644
edit
dl
rm
visitor.h
6966
0644
edit
dl
rm
visitor_inline.h
16429
0644
edit
dl
rm
Edit:
/usr/local/lib64/python3.6/site-packages/pyarrow/include/arrow/compare.h
(5165B)
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // Functions for comparing Arrow data structures #pragma once #include <cstdint> #include <iosfwd> #include "arrow/util/macros.h" #include "arrow/util/visibility.h" namespace arrow { class Array; class DataType; class Tensor; class SparseTensor; struct Scalar; static constexpr double kDefaultAbsoluteTolerance = 1E-5; /// A container of options for equality comparisons class EqualOptions { public: /// Whether or not NaNs are considered equal. bool nans_equal() const { return nans_equal_; } /// Return a new EqualOptions object with the "nans_equal" property changed. EqualOptions nans_equal(bool v) const { auto res = EqualOptions(*this); res.nans_equal_ = v; return res; } /// The absolute tolerance for approximate comparisons of floating-point values. double atol() const { return atol_; } /// Return a new EqualOptions object with the "atol" property changed. EqualOptions atol(double v) const { auto res = EqualOptions(*this); res.atol_ = v; return res; } /// The ostream to which a diff will be formatted if arrays disagree. /// If this is null (the default) no diff will be formatted. std::ostream* diff_sink() const { return diff_sink_; } /// Return a new EqualOptions object with the "diff_sink" property changed. /// This option will be ignored if diff formatting of the types of compared arrays is /// not supported. EqualOptions diff_sink(std::ostream* diff_sink) const { auto res = EqualOptions(*this); res.diff_sink_ = diff_sink; return res; } static EqualOptions Defaults() { return {}; } protected: double atol_ = kDefaultAbsoluteTolerance; bool nans_equal_ = false; std::ostream* diff_sink_ = NULLPTR; }; /// Returns true if the arrays are exactly equal bool ARROW_EXPORT ArrayEquals(const Array& left, const Array& right, const EqualOptions& = EqualOptions::Defaults()); /// Returns true if the arrays are approximately equal. For non-floating point /// types, this is equivalent to ArrayEquals(left, right) bool ARROW_EXPORT ArrayApproxEquals(const Array& left, const Array& right, const EqualOptions& = EqualOptions::Defaults()); /// Returns true if indicated equal-length segment of arrays are exactly equal bool ARROW_EXPORT ArrayRangeEquals(const Array& left, const Array& right, int64_t start_idx, int64_t end_idx, int64_t other_start_idx, const EqualOptions& = EqualOptions::Defaults()); /// Returns true if indicated equal-length segment of arrays are approximately equal bool ARROW_EXPORT ArrayRangeApproxEquals(const Array& left, const Array& right, int64_t start_idx, int64_t end_idx, int64_t other_start_idx, const EqualOptions& = EqualOptions::Defaults()); bool ARROW_EXPORT TensorEquals(const Tensor& left, const Tensor& right, const EqualOptions& = EqualOptions::Defaults()); /// EXPERIMENTAL: Returns true if the given sparse tensors are exactly equal bool ARROW_EXPORT SparseTensorEquals(const SparseTensor& left, const SparseTensor& right, const EqualOptions& = EqualOptions::Defaults()); /// Returns true if the type metadata are exactly equal /// \param[in] left a DataType /// \param[in] right a DataType /// \param[in] check_metadata whether to compare KeyValueMetadata for child /// fields bool ARROW_EXPORT TypeEquals(const DataType& left, const DataType& right, bool check_metadata = true); /// Returns true if scalars are equal /// \param[in] left a Scalar /// \param[in] right a Scalar /// \param[in] options comparison options bool ARROW_EXPORT ScalarEquals(const Scalar& left, const Scalar& right, const EqualOptions& options = EqualOptions::Defaults()); /// Returns true if scalars are approximately equal /// \param[in] left a Scalar /// \param[in] right a Scalar /// \param[in] options comparison options bool ARROW_EXPORT ScalarApproxEquals(const Scalar& left, const Scalar& right, const EqualOptions& options = EqualOptions::Defaults()); } // namespace arrow
Save
cmd:
run