Class WebBarrageSubscription.ViewportImpl
java.lang.Object
io.deephaven.web.client.api.barrage.data.WebBarrageSubscription
io.deephaven.web.client.api.barrage.data.WebBarrageSubscription.ViewportImpl
- Enclosing class:
- WebBarrageSubscription
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.web.client.api.barrage.data.WebBarrageSubscription
WebBarrageSubscription.BlinkImpl, WebBarrageSubscription.DataChangedHandler, WebBarrageSubscription.RedirectedImpl, WebBarrageSubscription.ViewportChangedHandler, WebBarrageSubscription.ViewportImpl
-
Field Summary
Fields inherited from class io.deephaven.web.client.api.barrage.data.WebBarrageSubscription
BATCH_SIZE, capacity, COLUMNS_AS_LIST, currentRowSet, dataChangedHandler, destSources, MAX_MESSAGE_SIZE, serverColumns, serverReverseViewport, serverViewport, state, viewportChangedHandler
-
Constructor Summary
ConstructorsConstructorDescriptionViewportImpl
(ClientTableState state, WebBarrageSubscription.ViewportChangedHandler viewportChangedHandler, WebBarrageSubscription.DataChangedHandler dataChangedHandler, WebColumnData[] dataSinks) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyUpdates
(WebBarrageMessage message) long
jsinterop.base.Any
getData
(long key, int col) Reads a value from the table subscription.Methods inherited from class io.deephaven.web.client.api.barrage.data.WebBarrageSubscription
getServerViewport, isReversed, isSubscribedColumn, numColumns, subscribe, updateServerViewport
-
Constructor Details
-
ViewportImpl
public ViewportImpl(ClientTableState state, WebBarrageSubscription.ViewportChangedHandler viewportChangedHandler, WebBarrageSubscription.DataChangedHandler dataChangedHandler, WebColumnData[] dataSinks)
-
-
Method Details
-
getCurrentSize
public long getCurrentSize()- Overrides:
getCurrentSize
in classWebBarrageSubscription
- Returns:
- the current size of the table
-
getCurrentRowSet
- Overrides:
getCurrentRowSet
in classWebBarrageSubscription
-
applyUpdates
- Specified by:
applyUpdates
in classWebBarrageSubscription
-
getData
public jsinterop.base.Any getData(long key, int col) Description copied from class:WebBarrageSubscription
Reads a value from the table subscription.- Specified by:
getData
in classWebBarrageSubscription
- Parameters:
key
- the row to read in key-spacecol
- the index of the column to read- Returns:
- the value read from the table
-