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)
| 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. |