Interface TableOptimizerRun.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TableOptimizerRun.Builder,TableOptimizerRun>, SdkBuilder<TableOptimizerRun.Builder,TableOptimizerRun>, SdkPojo
Enclosing class:
TableOptimizerRun

public static interface TableOptimizerRun.Builder extends SdkPojo, CopyableBuilder<TableOptimizerRun.Builder,TableOptimizerRun>
  • Method Details

    • eventType

      TableOptimizerRun.Builder eventType(String eventType)

      An event type representing the status of the table optimizer run.

      Parameters:
      eventType - An event type representing the status of the table optimizer run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventType

      An event type representing the status of the table optimizer run.

      Parameters:
      eventType - An event type representing the status of the table optimizer run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startTimestamp

      TableOptimizerRun.Builder startTimestamp(Instant startTimestamp)

      Represents the epoch timestamp at which the compaction job was started within Lake Formation.

      Parameters:
      startTimestamp - Represents the epoch timestamp at which the compaction job was started within Lake Formation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTimestamp

      TableOptimizerRun.Builder endTimestamp(Instant endTimestamp)

      Represents the epoch timestamp at which the compaction job ended.

      Parameters:
      endTimestamp - Represents the epoch timestamp at which the compaction job ended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      A RunMetrics object containing metrics for the optimizer run.

      Parameters:
      metrics - A RunMetrics object containing metrics for the optimizer run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      A RunMetrics object containing metrics for the optimizer run.

      This is a convenience method that creates an instance of the RunMetrics.Builder avoiding the need to create one manually via RunMetrics.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metrics(RunMetrics).

      Parameters:
      metrics - a consumer that will call methods on RunMetrics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • error

      An error that occured during the optimizer run.

      Parameters:
      error - An error that occured during the optimizer run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.