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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExtraProperty(String key, String value) amendSession(Function<Session.SessionBuilder, Session.SessionBuilder> amendSession) build()protected SELFself()setAdditionalModule(com.google.inject.Module additionalModule) setAdditionalSetup(Consumer<QueryRunner> additionalSetup) Additional configuration to be applied onQueryRunnerbeing built.setBackupCoordinatorProperties(Map<String, String> backupCoordinatorProperties) setBaseDataDir(Optional<Path> baseDataDir) setCoordinatorProperties(Map<String, String> coordinatorProperties) setEnvironment(String environment) setEventListener(EventListener eventListener) setEventListeners(List<EventListener> eventListeners) setExtraProperties(Map<String, String> extraProperties) setNodeCount(int nodeCount) setSingleCoordinatorProperty(String key, String value) Sets coordinator properties being equal to a map containing given key and value.setSystemAccessControl(SystemAccessControl systemAccessControl) setSystemAccessControls(List<SystemAccessControl> systemAccessControls)
-
Constructor Details
-
Builder
-
-
Method Details
-
amendSession
-
setNodeCount
-
setExtraProperties
-
addExtraProperty
-
setCoordinatorProperties
-
setBackupCoordinatorProperties
-
setAdditionalSetup
Additional configuration to be applied onQueryRunnerbeing built. Invoked after engine configuration is applied, but before connector-specific configurations (if any) are applied. -
setSingleCoordinatorProperty
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. -
setEnvironment
-
setAdditionalModule
-
setBaseDataDir
-
setSystemAccessControl
-
setSystemAccessControls
-
setEventListener
-
setEventListeners
-
enableBackupCoordinator
-
self
-
build
- Throws:
Exception
-