Class RemoteDeephavenTableLocation

All Implemented Interfaces:
LogOutputAppendable, ColumnToCodecMappings, TableLocation, TableLocationState, DeephavenFormatTableLocation, io.deephaven.shadow.enterprise.com.fishlib.base.log.LogOutputAppendable, io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler, NamedImplementation

public class RemoteDeephavenTableLocation extends AbstractTableLocation implements DeephavenFormatTableLocation, io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler, ColumnToCodecMappings
A TableLocation implementation for remote table subscriptions discovered by a io.deephaven.enterprise.tabledataservice.RemoteTableDataService.
  • Constructor Details

    • RemoteDeephavenTableLocation

      public RemoteDeephavenTableLocation(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.TableDataProtocolDriver driver, @NotNull @NotNull EnterpriseTableKey tableKey, @NotNull @NotNull EnterpriseTableLocationKey locationKey, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition tableDefinition)
      Create a remote table location using the specified protocol driver for acquiring table data.
      Parameters:
      driver - the driver
      tableKey - the EnterpriseTableKey identifying the table
      locationKey - the EnterpriseTableLocationKey identifying the column and internal partitions
      tableDefinition -
  • Method Details

    • handleUpdate

      public void handleUpdate(@NotNull @NotNull TableLocationState source)
      Overrides:
      handleUpdate in class AbstractTableLocation
    • activateUnderlyingDataSource

      protected void activateUnderlyingDataSource()
      Overrides:
      activateUnderlyingDataSource in class SubscriptionAggregator<TableLocation.Listener>
    • deactivateUnderlyingDataSource

      protected void deactivateUnderlyingDataSource()
      Overrides:
      deactivateUnderlyingDataSource in class SubscriptionAggregator<TableLocation.Listener>
    • matchSubscriptionToken

      protected <T> boolean matchSubscriptionToken(@NotNull T token)
      Overrides:
      matchSubscriptionToken in class SubscriptionAggregator<TableLocation.Listener>
    • refresh

      public void refresh()
      Specified by:
      refresh in interface TableLocation
    • makeColumnLocation

      @NotNull protected final @NotNull io.deephaven.enterprise.locations.remote.RemoteDeephavenColumnLocation makeColumnLocation(@NotNull @NotNull String name)
      Specified by:
      makeColumnLocation in class AbstractTableLocation
    • onTimeout

      public void onTimeout(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.TableDataRequest request)
      Specified by:
      onTimeout in interface io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler
    • onRejection

      public void onRejection(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.TableDataRequest request, String rejectionMessage, io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.TableDataProtocol.RequestRejectionType requestRejectionType)
      Specified by:
      onRejection in interface io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler
    • onComplete

      public void onComplete(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.TableDataRequest request)
      Specified by:
      onComplete in interface io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler
    • onTableLocationState

      public void onTableLocationState(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.TableLocationState state)
      Specified by:
      onTableLocationState in interface io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler
    • onTableLocationKeyAdded

      public void onTableLocationKeyAdded(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.TableLocationKey locationKey)
      Specified by:
      onTableLocationKeyAdded in interface io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler
    • onTableLocationKeyRemoved

      public void onTableLocationKeyRemoved(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.TableLocationKey locationKey)
      Specified by:
      onTableLocationKeyRemoved in interface io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.protocol.RequestResultHandler
    • append

      public io.deephaven.shadow.enterprise.com.fishlib.base.log.LogOutput append(@NotNull @NotNull io.deephaven.shadow.enterprise.com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface DeephavenFormatTableLocation
      Specified by:
      append in interface io.deephaven.shadow.enterprise.com.fishlib.base.log.LogOutputAppendable
    • getCodecName

      public String getCodecName(@NotNull @NotNull String columnName)
      Specified by:
      getCodecName in interface ColumnToCodecMappings
    • getCodecArgs

      public String getCodecArgs(@NotNull @NotNull String columnName)
      Specified by:
      getCodecArgs in interface ColumnToCodecMappings