Package io.trino.testing
Class DistributedQueryRunner.Builder
- java.lang.Object
-
- io.trino.testing.DistributedQueryRunner.Builder
-
- Enclosing class:
- DistributedQueryRunner
public static class DistributedQueryRunner.Builder extends Object
-
-
Method Summary
-
-
-
Constructor Detail
-
Builder
protected Builder(Session defaultSession)
-
-
Method Detail
-
amendSession
public DistributedQueryRunner.Builder amendSession(Function<Session.SessionBuilder,Session.SessionBuilder> amendSession)
-
setNodeCount
public DistributedQueryRunner.Builder setNodeCount(int nodeCount)
-
setExtraProperties
public DistributedQueryRunner.Builder setExtraProperties(Map<String,String> extraProperties)
-
addExtraProperty
public DistributedQueryRunner.Builder addExtraProperty(String key, String value)
-
setCoordinatorProperties
public DistributedQueryRunner.Builder setCoordinatorProperties(Map<String,String> coordinatorProperties)
-
setBackupCoordinatorProperties
public DistributedQueryRunner.Builder setBackupCoordinatorProperties(Map<String,String> backupCoordinatorProperties)
-
setSingleCoordinatorProperty
public DistributedQueryRunner.Builder 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.
-
setEnvironment
public DistributedQueryRunner.Builder setEnvironment(String environment)
-
setAdditionalModule
public DistributedQueryRunner.Builder setAdditionalModule(com.google.inject.Module additionalModule)
-
setBaseDataDir
public DistributedQueryRunner.Builder setBaseDataDir(Optional<Path> baseDataDir)
-
setSystemAccessControl
public DistributedQueryRunner.Builder setSystemAccessControl(SystemAccessControl systemAccessControl)
-
setSystemAccessControls
public DistributedQueryRunner.Builder setSystemAccessControls(List<SystemAccessControl> systemAccessControls)
-
enableBackupCoordinator
public DistributedQueryRunner.Builder enableBackupCoordinator()
-
build
public DistributedQueryRunner build() throws Exception
- Throws:
Exception
-
-