Sha256: 33c4513a1c7c1d2a4cd57f676662362437e8a2c8030bb44cd759c6b229f4afe1
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
# Copyright 2017 Kouhei Sutou <kou@clear-code.com> # # Licensed 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. module Arrow class Record def initialize(record_batch, i) @record_batch = record_batch @i = i end def [](name_or_index) @record_batch.find_column(name_or_index)[@i] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
red-arrow-0.2.1 | lib/arrow/record.rb |