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

Method read_stripe

python/pyarrow/orc.py:150–168  ·  view source on GitHub ↗

Read a single stripe from the file. Parameters ---------- n : int The stripe index columns : list If not None, only these columns will be read from the stripe. A column name may be a prefix of a nested field, e.g. 'a' will select

(self, n, columns=None)

Source from the content-addressed store, hash-verified

148 return names
149
150 def read_stripe(self, n, columns=None):
151 """Read a single stripe from the file.
152
153 Parameters
154 ----------
155 n : int
156 The stripe index
157 columns : list
158 If not None, only these columns will be read from the stripe. A
159 column name may be a prefix of a nested field, e.g. 'a' will select
160 'a.b', 'a.c', and 'a.d.e'
161
162 Returns
163 -------
164 pyarrow.RecordBatch
165 Content of the stripe as a RecordBatch.
166 """
167 columns = self._select_names(columns)
168 return self.reader.read_stripe(n, columns=columns)
169
170 def read(self, columns=None):
171 """Read the whole file.

Callers 2

check_example_fileFunction · 0.95
TestORCFileReaderClass · 0.80

Calls 1

_select_namesMethod · 0.95

Tested by 1

check_example_fileFunction · 0.76