red-arrow 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea145522c98f53e541b20e8e3233589d18996842
4
- data.tar.gz: a7da6ca9c0818cdc6f2fbac03f99247d76513855
3
+ metadata.gz: e1fbd43acae6f8bbb8688d76e64154f5fa6398d8
4
+ data.tar.gz: a4c89fcb98100f1853cbe33ee528edd83a233f22
5
5
  SHA512:
6
- metadata.gz: 18f252e251d15226ed4e7bfa1c7296975914b3a418b16ba964cd8f570e59158bbf35f60608254e13e7367121711237b7caf9b800fb731360e0ad769863cf8cb6
7
- data.tar.gz: ab8f529a4ffdbf0e0738bc1784f0e41fbbfc5e4bbd94278f19f3d9fdf0938873f4c907d62f426756b3ae55df2d4cd5da64fc73b6650c0f13113ecda115ca55e0
6
+ metadata.gz: 8ba4889b6bd62a4c28528360343f834d67465623f9a7dbf7de6bd63534db73f91a536f700bb07c004d6aa314ca92443fe8e65f90224827c85a63366dfbf7b6ab
7
+ data.tar.gz: bd459dc051e5d564014ee8920241a863a1f82ba64062cc162413b33fb400ee6c6e13fb67db047a9b62eb7f28dda4d80798332627e38c123dc0b023cc757289b3
@@ -1,5 +1,15 @@
1
1
  # News
2
2
 
3
+ ## 0.2.1 - 2017-03-23
4
+
5
+ ### Improvements
6
+
7
+ * Added `Arrow::IPC::FileReader#each`.
8
+
9
+ ### Fixes
10
+
11
+ * Fixed a bug that `Arrow::Record#[]` doesn't work.
12
+
3
13
  ## 0.2.0 - 2017-03-14
4
14
 
5
15
  Initial release!!!
@@ -0,0 +1,27 @@
1
+ # Copyright 2017 Kouhei Sutou <kou@clear-code.com>
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Arrow
16
+ module IPC
17
+ class FileReader
18
+ include Enumerable
19
+
20
+ def each
21
+ n_record_batches.times do |i|
22
+ yield(get_record_batch(i))
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -31,6 +31,7 @@ module Arrow
31
31
  end
32
32
 
33
33
  def require_libraries
34
+ require "arrow/ipc/file-reader"
34
35
  require "arrow/ipc/stream-reader"
35
36
  end
36
37
  end
@@ -20,7 +20,7 @@ module Arrow
20
20
  end
21
21
 
22
22
  def [](name_or_index)
23
- @record_batch.find_column(name_or_index).get_value(@i)
23
+ @record_batch.find_column(name_or_index)[@i]
24
24
  end
25
25
  end
26
26
  end
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module Arrow
16
- VERSION = "0.2.0"
16
+ VERSION = "0.2.1"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-arrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gobject-introspection
@@ -115,6 +115,7 @@ files:
115
115
  - lib/arrow/block-openable.rb
116
116
  - lib/arrow/field.rb
117
117
  - lib/arrow/io/loader.rb
118
+ - lib/arrow/ipc/file-reader.rb
118
119
  - lib/arrow/ipc/loader.rb
119
120
  - lib/arrow/ipc/stream-reader.rb
120
121
  - lib/arrow/loader.rb