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

Method run

python/pyarrow/tests/test_ipc.py:854–867  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

852 return port
853
854 def run(self):
855 connection, client_address = self._sock.accept()
856 try:
857 source = connection.makefile(mode='rb')
858 reader = pa.ipc.open_stream(source)
859 self._schema = reader.schema
860 if self._do_read_all:
861 self._table = reader.read_all()
862 else:
863 for i, batch in enumerate(reader):
864 self._batches.append(batch)
865 finally:
866 connection.close()
867 self._sock.close()
868
869 def get_result(self):
870 return (self._schema, self._table if self._do_read_all

Callers 11

run_with_env_varFunction · 0.45
test_timezone_absentFunction · 0.45
is_gdb_availableFunction · 0.45
test_get_flight_infoFunction · 0.45
check_env_varFunction · 0.45
run_debug_memory_poolFunction · 0.45
test_print_statsFunction · 0.45

Calls 2

appendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected