MCPcopy Create free account
hub / github.com/apache/arrow / read

Method read

python/pyarrow/orc.py:170–187  ·  view source on GitHub ↗

Read the whole file. Parameters ---------- columns : list If not None, only these columns will be read from the file. A column name may be a prefix of a nested field, e.g. 'a' will select 'a.b', 'a.c', and 'a.d.e'. Output always follows th

(self, columns=None)

Source from the content-addressed store, hash-verified

168 return self.reader.read_stripe(n, columns=columns)
169
170 def read(self, columns=None):
171 """Read the whole file.
172
173 Parameters
174 ----------
175 columns : list
176 If not None, only these columns will be read from the file. A
177 column name may be a prefix of a nested field, e.g. 'a' will select
178 'a.b', 'a.c', and 'a.d.e'. Output always follows the
179 ordering of the file and not the `columns` list.
180
181 Returns
182 -------
183 pyarrow.Table
184 Content of the file as a Table.
185 """
186 columns = self._select_names(columns)
187 return self.reader.read(columns=columns)
188
189
190_orc_writer_args_docs = """file_version : {"0.11", "0.12"}, default "0.12"

Callers 15

check_example_fileFunction · 0.95
test_bytesio_readwriteFunction · 0.95
test_buffer_readwriteFunction · 0.95
test_column_selectionFunction · 0.95
read_tableFunction · 0.45
_read_table_internalFunction · 0.45
_download_urllibFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
load_configurationFunction · 0.45
test_templateMethod · 0.45

Calls 1

_select_namesMethod · 0.95

Tested by 11

check_example_fileFunction · 0.76
test_bytesio_readwriteFunction · 0.76
test_buffer_readwriteFunction · 0.76
test_column_selectionFunction · 0.76
test_templateMethod · 0.36
shMethod · 0.36
detect_versionsMethod · 0.36
decoderFunction · 0.36