Package io.trino.testing
Class DistributedQueryRunner.Builder<SELF extends DistributedQueryRunner.Builder<?>>
- java.lang.Object
-
- io.trino.testing.DistributedQueryRunner.Builder<SELF>
-
- Enclosing class:
- DistributedQueryRunner
public static class DistributedQueryRunner.Builder<SELF extends DistributedQueryRunner.Builder<?>> extends Object
-
-
Method Summary
-
-
-
Constructor Detail
-
Builder
protected Builder(Session defaultSession)
-
-
Method Detail
-
amendSession
public SELF amendSession(Function<Session.SessionBuilder,Session.SessionBuilder> amendSession)
-
setNodeCount
public SELF setNodeCount(int nodeCount)
-
setCoordinatorProperties
public SELF setCoordinatorProperties(Map<String,String> coordinatorProperties)
-
setBackupCoordinatorProperties
public SELF setBackupCoordinatorProperties(Map<String,String> backupCoordinatorProperties)
-
setAdditionalSetup
public SELF setAdditionalSetup(Consumer<QueryRunner> additionalSetup)
Additional configuration to be applied onQueryRunnerbeing built. Invoked after engine configuration is applied, but before connector-specific configurations (if any) are applied.
-
setSingleCoordinatorProperty
public SELF setSingleCoordinatorProperty(String key, String value)
Sets coordinator properties being equal to a map containing given key and value. Note, that calling this method OVERWRITES previously set property values. As a result, it should only be used when only one coordinator property needs to be set.
-
setAdditionalModule
public SELF setAdditionalModule(com.google.inject.Module additionalModule)
-
setSystemAccessControl
public SELF setSystemAccessControl(SystemAccessControl systemAccessControl)
-
setSystemAccessControls
public SELF setSystemAccessControls(List<SystemAccessControl> systemAccessControls)
-
setEventListener
public SELF setEventListener(EventListener eventListener)
-
setEventListeners
public SELF setEventListeners(List<EventListener> eventListeners)
-
enableBackupCoordinator
public SELF enableBackupCoordinator()
-
self
protected SELF self()
-
build
public DistributedQueryRunner build() throws Exception
- Throws:
Exception
-
-