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

Method index

ruby/red-arrow/lib/arrow/array-computable.rb:40–43  ·  view source on GitHub ↗

Finds the index of the first occurrence of a given value. @param value [Object] The value to be compared. @return [Integer] The index of the first occurrence of a given value on found, -1 on not found. @since 12.0.0

(value)

Source from the content-addressed store, hash-verified

38 #
39 # @since 12.0.0
40 def index(value)
41 value = Scalar.resolve(value, value_data_type)
42 compute("index", options: {value: value}).value
43 end
44
45 private
46 def compute(name, options: nil)

Callers 8

selective_converterMethod · 0.45
each_recordMethod · 0.45
remove_columnMethod · 0.45
ChunkedArrayTestClass · 0.45
RecordBatchTestClass · 0.45
ArrayTestClass · 0.45
resolve_type_indexMethod · 0.45
build_record_batchesMethod · 0.45

Calls 2

resolveMethod · 0.45
valueMethod · 0.45

Tested by 1

build_record_batchesMethod · 0.36