Skip to content

Commit

Permalink
#989 few more tweaks with virtualized provider
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjstevo committed Dec 29, 2023
1 parent 8688125 commit 58a261d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.finos.vuu.example.virtualtable.provider
import org.finos.toolbox.time.Clock
import org.finos.vuu.core.table.{DataTable, RowWithData}
import org.finos.vuu.example.virtualtable.bigdatacache.FakeBigDataCache
import org.finos.vuu.plugin.virtualized.table.VirtualizedSessionTable
import org.finos.vuu.plugin.virtualized.table.{VirtualizedRange, VirtualizedSessionTable}
import org.finos.vuu.provider.VirtualizedProvider
import org.finos.vuu.viewport.ViewPort

Expand All @@ -29,6 +29,9 @@ class ReallyBigVirtualizedDataProvider(val table: DataTable)(implicit clock: Clo

val bigOrders = cache.loadOrdersInRange(startIndex, endIndex)

internalTable.setRange(VirtualizedRange(startIndex, endIndex))
internalTable.setSize(100_000_000)

bigOrders.foreach({case(index, order) => {
val rowWithData = RowWithData(order.orderId.toString,
Map("orderId" -> order.orderId.toString, "quantity" -> order.quantity, "price" -> order.price,
Expand Down

0 comments on commit 58a261d

Please sign in to comment.