def _configure(self, input_file, output_file, port): self._connection = Connection.BufferingTCPMappedFileConnection( input_file, output_file, port) self._iterator = Iterator.Iterator(self._connection) self.context = RuntimeContext.RuntimeContext(self._iterator, self._collector) self._configure_chain(Collector.Collector(self._connection))
def _configure(self, input_file, output_file, port, env): self._connection = Connection.TwinBufferingTCPMappedFileConnection(input_file, output_file, port) self._iterator = Iterator.Iterator(self._connection, env, 0) self._iterator2 = Iterator.Iterator(self._connection, env, 1) self._cgiter = Iterator.CoGroupIterator(self._iterator, self._iterator2, self._keys1, self._keys2) self.context = RuntimeContext.RuntimeContext(self._iterator, self._collector) self._configure_chain(Collector.Collector(self._connection, env))
def _configure(self, input_file, output_file, port, env, info, task_id): self._connection = Connection.BufferingTCPMappedFileConnection(input_file, output_file, port) self._iterator = Iterator.Iterator(self._connection, env) self._collector = Collector.Collector(self._connection, env, info) self.context = RuntimeContext.RuntimeContext(self._iterator, self._collector, task_id) self._env = env if info.chained_info is not None: info.chained_info.operator._configure_chain(self.context, self._collector, info.chained_info) self._collector = info.chained_info.operator
def _configure(self, input_file, output_file, port): if self._combine: self._connection = Connection.BufferingTCPMappedFileConnection( input_file, output_file, port) self._iterator = Iterator.Iterator(self._connection) self._collector = Collector.Collector(self._connection) self.context = RuntimeContext.RuntimeContext( self._iterator, self._collector) self._run = self._run_combine else: self._connection = Connection.BufferingTCPMappedFileConnection( input_file, output_file, port) self._iterator = Iterator.Iterator(self._connection) self._group_iterator = Iterator.GroupIterator( self._iterator, self._keys) self.context = RuntimeContext.RuntimeContext( self._iterator, self._collector) self._configure_chain(Collector.Collector(self._connection)) self._open()
def _configure(self, input_file, output_file, port, env, info, subtask_index): self._connection = Connection.TwinBufferingTCPMappedFileConnection(input_file, output_file, port) self._iterator = Iterator.Iterator(self._connection, env, 0) self._iterator2 = Iterator.Iterator(self._connection, env, 1) self._cgiter = Iterator.CoGroupIterator(self._iterator, self._iterator2, self._keys1, self._keys2) self._collector = Collector.Collector(self._connection, env, info) self.context = RuntimeContext.RuntimeContext(self._iterator, self._collector, subtask_index) if info.chained_info is not None: info.chained_info.operator._configure_chain(self.context, self._collector, info.chained_info) self._collector = info.chained_info.operator