(self, location=None, expected_schema=None, **kwargs)
| 216 | """A Flight server that returns the last data uploaded.""" |
| 217 | |
| 218 | def __init__(self, location=None, expected_schema=None, **kwargs): |
| 219 | super().__init__(location, **kwargs) |
| 220 | self.last_message = None |
| 221 | self.expected_schema = expected_schema |
| 222 | |
| 223 | def do_get(self, context, ticket): |
| 224 | return flight.RecordBatchStream(self.last_message) |