use of io.prestosql.plugin.memory.data.MemoryTableManager in project hetu-core by openlookeng.
the class TestMemoryTableManager method setUp.
@BeforeMethod
public void setUp() throws IOException {
synchronized (MemoryThreadManager.class) {
if (!MemoryThreadManager.isSharedThreadPoolInitilized()) {
MemoryThreadManager.initSharedThreadPool(4);
}
}
pagesStore = new MemoryTableManager(new MemoryConfig().setMaxDataPerNode(new DataSize(1, DataSize.Unit.MEGABYTE)).setSpillRoot(Files.createTempDirectory("test-memory-table").toString()), sorter, new TestingTypeManager(), new TestingPagesSerdeFactory().createPagesSerde());
pageSinkProvider = new MemoryPageSinkProvider(pagesStore, HostAddress.fromString("localhost:8080"));
}
Aggregations