Sha256: 4952e623b1d3c6bb95e931556b1f409067a815923f731ff8518ed3792f12db86

Contents?: true

Size: 917 Bytes

Versions: 1

Compression:

Stored size: 917 Bytes

Contents

# Copyright 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
  module ArrowTableLoadable
    private
    def load_as_parquet(path)
      reader = Parquet::ArrowFileReader.new(path)
      reader.n_threads = @options[:n_threads] || 4 # TODO
      reader.read_table
    end
  end
end

module Arrow
  class TableLoader
    include Parquet::ArrowTableLoadable
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
red-parquet-0.0.2 lib/parquet/arrow-table-loadable.rb