Search in sources :

Example 1 with FileSystemExchangeManagerFactory

use of io.trino.plugin.exchange.FileSystemExchangeManagerFactory in project trino by trinodb.

the class TestDeduplicatingDirectExchangeBuffer method beforeClass.

@BeforeClass
public void beforeClass() {
    exchangeManagerRegistry = new ExchangeManagerRegistry(new ExchangeHandleResolver());
    exchangeManagerRegistry.addExchangeManagerFactory(new FileSystemExchangeManagerFactory());
    exchangeManagerRegistry.loadExchangeManager("filesystem", ImmutableMap.of("exchange.base-directory", System.getProperty("java.io.tmpdir") + "/trino-local-file-system-exchange-manager"));
}
Also used : FileSystemExchangeManagerFactory(io.trino.plugin.exchange.FileSystemExchangeManagerFactory) ExchangeManagerRegistry(io.trino.exchange.ExchangeManagerRegistry) ExchangeHandleResolver(io.trino.metadata.ExchangeHandleResolver) BeforeClass(org.testng.annotations.BeforeClass)

Example 2 with FileSystemExchangeManagerFactory

use of io.trino.plugin.exchange.FileSystemExchangeManagerFactory in project trino by trinodb.

the class TestS3FileSystemExchangeManager method createExchangeManager.

@Override
protected ExchangeManager createExchangeManager() {
    this.minioStorage = new MinioStorage("test-exchange-spooling-" + randomUUID());
    minioStorage.start();
    return new FileSystemExchangeManagerFactory().create(getExchangeManagerProperties(minioStorage));
}
Also used : MinioStorage(io.trino.plugin.exchange.containers.MinioStorage) FileSystemExchangeManagerFactory(io.trino.plugin.exchange.FileSystemExchangeManagerFactory)

Aggregations

FileSystemExchangeManagerFactory (io.trino.plugin.exchange.FileSystemExchangeManagerFactory)2 ExchangeManagerRegistry (io.trino.exchange.ExchangeManagerRegistry)1 ExchangeHandleResolver (io.trino.metadata.ExchangeHandleResolver)1 MinioStorage (io.trino.plugin.exchange.containers.MinioStorage)1 BeforeClass (org.testng.annotations.BeforeClass)1