arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject arrow git commit: ARROW-1223: [GLib] Fix function name that returns wrapped object
Date Sun, 16 Jul 2017 21:30:37 GMT
Repository: arrow
Updated Branches:
  refs/heads/master 50b518afc -> cdf7db910


ARROW-1223: [GLib] Fix function name that returns wrapped object

We're using `XXX_get_raw()` as name for function that returns wrapped object.

Author: Kouhei Sutou <kou@clear-code.com>

Closes #852 from kou/glib-use-get-raw and squashes the following commits:

e7d84575 [Kouhei Sutou] [GLib] Fix function name that returns wrapped object


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/cdf7db91
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/cdf7db91
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/cdf7db91

Branch: refs/heads/master
Commit: cdf7db9105e713e64de1a063ffe36e3f8d65227f
Parents: 50b518a
Author: Kouhei Sutou <kou@clear-code.com>
Authored: Sun Jul 16 17:30:33 2017 -0400
Committer: Wes McKinney <wes.mckinney@twosigma.com>
Committed: Sun Jul 16 17:30:33 2017 -0400

----------------------------------------------------------------------
 c_glib/arrow-glib/input-stream.cpp   | 4 ++--
 c_glib/arrow-glib/input-stream.h     | 2 +-
 c_glib/test/test-gio-input-stream.rb | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/cdf7db91/c_glib/arrow-glib/input-stream.cpp
----------------------------------------------------------------------
diff --git a/c_glib/arrow-glib/input-stream.cpp b/c_glib/arrow-glib/input-stream.cpp
index 37ac2fa..40f0c94 100644
--- a/c_glib/arrow-glib/input-stream.cpp
+++ b/c_glib/arrow-glib/input-stream.cpp
@@ -561,7 +561,7 @@ garrow_gio_input_stream_new(GInputStream *gio_input_stream)
 }
 
 /**
- * garrow_gio_input_stream_get_gio_input_stream:
+ * garrow_gio_input_stream_get_raw:
  * @input_stream: A #GArrowGIOInputStream.
  *
  * Returns: (transfer none): The wrapped #GInputStream.
@@ -569,7 +569,7 @@ garrow_gio_input_stream_new(GInputStream *gio_input_stream)
  * Since: 0.5.0
  */
 GInputStream *
-garrow_gio_input_stream_get_gio_input_stream(GArrowGIOInputStream *input_stream)
+garrow_gio_input_stream_get_raw(GArrowGIOInputStream *input_stream)
 {
   auto arrow_input_stream =
     garrow_input_stream_get_raw(GARROW_INPUT_STREAM(input_stream));

http://git-wip-us.apache.org/repos/asf/arrow/blob/cdf7db91/c_glib/arrow-glib/input-stream.h
----------------------------------------------------------------------
diff --git a/c_glib/arrow-glib/input-stream.h b/c_glib/arrow-glib/input-stream.h
index 120839d..12c7ae7 100644
--- a/c_glib/arrow-glib/input-stream.h
+++ b/c_glib/arrow-glib/input-stream.h
@@ -279,6 +279,6 @@ struct _GArrowGIOInputStreamClass
 GType garrow_gio_input_stream_get_type(void) G_GNUC_CONST;
 
 GArrowGIOInputStream *garrow_gio_input_stream_new(GInputStream *gio_input_stream);
-GInputStream *garrow_gio_input_stream_get_gio_input_stream(GArrowGIOInputStream *input_stream);
+GInputStream *garrow_gio_input_stream_get_raw(GArrowGIOInputStream *input_stream);
 
 G_END_DECLS

http://git-wip-us.apache.org/repos/asf/arrow/blob/cdf7db91/c_glib/test/test-gio-input-stream.rb
----------------------------------------------------------------------
diff --git a/c_glib/test/test-gio-input-stream.rb b/c_glib/test/test-gio-input-stream.rb
index baa978e..a71a370 100644
--- a/c_glib/test/test-gio-input-stream.rb
+++ b/c_glib/test/test-gio-input-stream.rb
@@ -48,6 +48,6 @@ class TestGIOInputStream < Test::Unit::TestCase
   def test_getter
     input_stream = Gio::MemoryInputStream.new("Hello")
     input = Arrow::GIOInputStream.new(input_stream)
-    assert_equal(input_stream, input.gio_input_stream)
+    assert_equal(input_stream, input.raw)
   end
 end


Mime
View raw message