March 5, 2025
Release notes for Deephaven Core version 0.37
from deephaven.experimental.table_data_service import ( TableDataServiceBackend, TableKey, TableLocationKey, TableDataService,)from typing import Callable, Optional, Dictimport pyarrow as paclass TableKeyImpl(TableKey): """ A simple implementation of a TableKey. """ def __init__(self, key: str): self.key = key def __hash__(self): return hash(self.key) def __eq__(self, other): if not isinstance(other, TableKeyImpl): return NotImplemented return self.key == other.key def __str__(self): return f"TableKeyImpl{{{self.key}}}"class TableLocationKeyImpl(TableLocationKey): """ A simple implementation of a TableLocationKey. """ def __init__(self, key: str): self.key = key def __hash__(self): return hash(self.key) def __eq__(self, other): if not isinstance(other, TableLocationKeyImpl): return NotImplemented return self.key == other.key def __str__(self): return f"TableLocationKeyImpl{{{self.key}}}"class TestTable: """ A custom table implementation for the backend. """