use of io.prestosql.spi.type.testing.TestingTypeManager in project hetu-core by openlookeng.
the class TestParquetPageSourceFactory method setUp.
@BeforeClass
public void setUp() {
HiveHdfsConfiguration hiveHdfsConfiguration = new HiveHdfsConfiguration(new HdfsConfigurationInitializer(new HiveConfig(), ImmutableSet.of()), ImmutableSet.of());
HdfsEnvironment hdfsEnvironment = new HdfsEnvironment(hiveHdfsConfiguration, new HiveConfig(), new NoHdfsAuthentication());
parquetPageSourceFactory = new ParquetPageSourceFactory(new TestingTypeManager(), hdfsEnvironment, new FileFormatDataSourceStats(), new HiveConfig());
}
use of io.prestosql.spi.type.testing.TestingTypeManager in project hetu-core by openlookeng.
the class TestMemoryMetadata method setUp.
@BeforeMethod
public void setUp() throws IOException {
TempFolder tmp = new TempFolder().create();
Runtime.getRuntime().addShutdownHook(new Thread(tmp::close));
metadata = new MemoryMetadata(new TestingTypeManager(), new TestingNodeManager(), new HetuFsMetastore(new HetuFsMetastoreConfig().setHetuFileSystemMetastorePath(tmp.getRoot().getCanonicalPath()), new HetuLocalFileSystemClient(new LocalConfig(null), Paths.get(tmp.getRoot().getCanonicalPath()))), null, new MemoryConfig());
}
use of io.prestosql.spi.type.testing.TestingTypeManager 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