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

Method do_get

python/pyarrow/tests/test_flight.py:181–189  ·  view source on GitHub ↗
(self, context, ticket)

Source from the content-addressed store, hash-verified

179 self.options = options
180
181 def do_get(self, context, ticket):
182 data = [
183 pa.array([-10, -5, 0, 5, 10])
184 ]
185 table = pa.Table.from_arrays(data, names=['a'])
186 return flight.GeneratorStream(
187 table.schema,
188 self.number_batches(table),
189 options=self.options)
190
191 def do_put(self, context, descriptor, reader, writer):
192 counter = 0

Callers

nothing calls this directly

Calls 2

number_batchesMethod · 0.95
arrayMethod · 0.45

Tested by

no test coverage detected