## Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending#""" Utility module for the stream subpackage. """fromwarningsimportwarnimportjpyfromdeephavenimportDHErrorfromdeephaven.tableimportTable_JBlinkTableTools=jpy.get_type("io.deephaven.engine.table.impl.BlinkTableTools")
[docs]defblink_to_append_only(table:Table)->Table:""" Creates an 'append only' table from the blink table. Args: table (Table): a blink table Returns: an append-only table Raises: DHError """try:returnTable(j_table=_JBlinkTableTools.blinkToAppendOnly(table.j_table))exceptExceptionase:raiseDHError(e,"failed to create an append-only table.")frome
# TODO (https://github.com/deephaven/deephaven-core/issues/3853): Delete this method
[docs]defstream_to_append_only(table:Table)->Table:"""Deprecated synonym for blink_to_append_only"""warn('This function is deprecated, prefer blink_to_append_only',DeprecationWarning,stacklevel=2)returnblink_to_append_only(table)