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 Details

    • Builder

      protected Builder(Session defaultSession)
  • Method Details

    • amendSession

      @CanIgnoreReturnValue public SELF amendSession(Function<Session.SessionBuilder,Session.SessionBuilder> amendSession)
    • setNodeCount

      @CanIgnoreReturnValue public SELF setNodeCount(int nodeCount)
    • setExtraProperties

      @CanIgnoreReturnValue public SELF setExtraProperties(Map<String,String> extraProperties)
    • addExtraProperties

      @CanIgnoreReturnValue public SELF addExtraProperties(Map<String,String> extraProperties)
    • addExtraProperty

      @CanIgnoreReturnValue public SELF addExtraProperty(String key, String value)
    • setCoordinatorProperties

      @CanIgnoreReturnValue public SELF setCoordinatorProperties(Map<String,String> coordinatorProperties)
    • addCoordinatorProperty

      @CanIgnoreReturnValue public SELF addCoordinatorProperty(String key, String value)
    • setBackupCoordinatorProperties

      @CanIgnoreReturnValue public SELF setBackupCoordinatorProperties(Map<String,String> backupCoordinatorProperties)
    • setAdditionalSetup

      @CanIgnoreReturnValue public SELF setAdditionalSetup(Consumer<QueryRunner> additionalSetup)
      Additional configuration to be applied on QueryRunner being built. Invoked after engine configuration is applied, but before connector-specific configurations (if any) are applied.
    • setEnvironment

      @CanIgnoreReturnValue public SELF setEnvironment(String environment)
    • setAdditionalModule

      @CanIgnoreReturnValue public SELF setAdditionalModule(com.google.inject.Module additionalModule)
    • setBaseDataDir

      @CanIgnoreReturnValue public SELF setBaseDataDir(Optional<Path> baseDataDir)
    • setSystemAccessControl

      @CanIgnoreReturnValue public SELF setSystemAccessControl(String name, Map<String,String> configuration)
    • setSystemAccessControl

      @CanIgnoreReturnValue public SELF setSystemAccessControl(SystemAccessControl systemAccessControl)
    • setSystemAccessControls

      @CanIgnoreReturnValue public SELF setSystemAccessControls(List<SystemAccessControl> systemAccessControls)
    • setEventListener

      @CanIgnoreReturnValue public SELF setEventListener(EventListener eventListener)
    • setEventListeners

      @CanIgnoreReturnValue public SELF setEventListeners(List<EventListener> eventListeners)
    • setTestingTrinoClientFactory

      @CanIgnoreReturnValue public SELF setTestingTrinoClientFactory(DistributedQueryRunner.TestingTrinoClientFactory testingTrinoClientFactory)
    • enableBackupCoordinator

      @CanIgnoreReturnValue public SELF enableBackupCoordinator()
    • withTracing

      @CanIgnoreReturnValue public SELF withTracing()
    • self

      protected SELF self()
    • build

      public DistributedQueryRunner build() throws Exception
      Throws:
      Exception
    • addProperties

      protected static Map<String,String> addProperties(Map<String,String> properties, Map<String,String> update)
    • addProperty

      protected static com.google.common.collect.ImmutableMap<String,String> addProperty(Map<String,String> extraProperties, String key, String value)