MCPcopy Create free account
hub / github.com/apache/arrow / GenerateData

Method GenerateData

cpp/src/gandiva/tests/generate_data.h:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 explicit Decimal128DataGenerator(bool large) : large_(large) {}
85
86 arrow::Decimal128 GenerateData() {
87 uint64_t low = random_.next();
88 int64_t high = random_.next();
89 if (large_) {
90 high += (1ull << 62);
91 }
92 return arrow::Decimal128(high, low);
93 }
94
95 protected:
96 bool large_;

Callers

nothing calls this directly

Calls 2

Decimal128Class · 0.50
nextMethod · 0.45

Tested by

no test coverage detected