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

Function EffectiveSliceStop

cpp/src/arrow/compute/kernels/scalar_nested.cc:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143std::optional<int64_t> EffectiveSliceStop(const ListSliceOptions& opts,
144 const BaseListType& input_type) {
145 if (!opts.stop.has_value() && input_type.id() == Type::FIXED_SIZE_LIST) {
146 return checked_cast<const FixedSizeListType&>(input_type).list_size();
147 }
148 return opts.stop;
149}
150
151Result<TypeHolder> ListSliceOutputType(const ListSliceOptions& opts,
152 const BaseListType& input_list_type) {

Callers 1

ListSliceOutputTypeFunction · 0.85

Calls 2

idMethod · 0.45
list_sizeMethod · 0.45

Tested by

no test coverage detected