Sha256: 5e9d4b7a5cbd8657f7074bc39777b2d74b107f0f14525beddeaf95607311eca9
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# Copyright 2017-2018 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 Parquet class Loader < GObjectIntrospection::Loader class << self def load super("Parquet", Parquet) end end private def post_load(repository, namespace) require_libraries end def require_libraries require "parquet/arrow-table-loadable" require "parquet/arrow-table-savable" end def load_object_info(info) super klass = @base_module.const_get(rubyish_class_name(info)) if klass.method_defined?(:close) klass.extend(Arrow::BlockClosable) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
red-parquet-0.0.2 | lib/parquet/loader.rb |