mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
Move IsNegative to cc file
This commit is contained in:
1 parent
cb2c1acc8e
commit
bf2a7eaea6
2 files changed
+5
-3
No files matched your search
@@ -306,6 +306,10 @@ DecimalArray::DecimalArray(const std::shared_ptr<DataType>& type, int64_t length
|
||||
sign_bitmap_(sign_bitmap),
|
||||
sign_bitmap_data_(sign_bitmap != nullptr ? sign_bitmap->data() : nullptr) {}
|
||||
|
||||
bool DecimalArray::IsNegative(int64_t i) const {
|
||||
return sign_bitmap_data_ != nullptr ? BitUtil::GetBit(sign_bitmap_data_, i) : false;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
ARROW_EXPORT Decimal<T> DecimalArray::Value(int64_t i) const {
|
||||
Decimal<T> result;
|
||||
|
||||
@@ -382,9 +382,7 @@ class ARROW_EXPORT DecimalArray : public FixedSizeBinaryArray {
|
||||
const std::shared_ptr<Buffer>& null_bitmap = nullptr, int64_t null_count = 0,
|
||||
int64_t offset = 0, const std::shared_ptr<Buffer>& sign_bitmap = nullptr);
|
||||
|
||||
bool IsNegative(int64_t i) const {
|
||||
return sign_bitmap_data_ != nullptr ? BitUtil::GetBit(sign_bitmap_data_, i) : false;
|
||||
}
|
||||
bool IsNegative(int64_t i) const;
|
||||
|
||||
template <typename T>
|
||||
ARROW_EXPORT Decimal<T> Value(int64_t i) const;
|
||||
|
||||
Reference in new issue
Block a user