目录

UpdateOptions.Builder

Class Info

public static class Builder

Builder for UpdateOptions.

Public Constructor Summary

Constructor Name

Builder()

Builder, which is used to create an UpdateOptions.Builder object.

Public Method Summary

Qualifier and Type

Method Name and Description

UpdateOptions

build()

Builds and returns the instance.

UpdateOptions.Builder

setSampleSet(SampleSet sampleSet)

Sets the sampling dataset for updating data.

UpdateOptions.Builder

setTimeInterval(long startTime, long endTime, TimeUnit timeUnit)

Sets the time interval for data update.

Public Constructors

[h2]Builder()

Constructor

public Builder()

Builder, which is used to create an UpdateOptions.Builder object.

Public Methods

[h2]build()

Method

public UpdateOptions build()

Builds and returns the instance.

Returns

Type

Description

UpdateOptions

Builds and returns the instance.

[h2]setSampleSet(SampleSet sampleSet)

Method

public UpdateOptions.Builder setSampleSet(SampleSet sampleSet)

Sets the sampling dataset for updating data.

Parameters

Name

Description

sampleSet

Sampling dataset for updating data.

Returns

Type

Description

UpdateOptions.Builder

UpdateOptions.Builder object.

[h2]setTimeInterval(long startTime, long endTime, TimeUnit timeUnit)

Method

public UpdateOptions.Builder setTimeInterval(long startTime, long endTime, TimeUnit timeUnit)

Sets the time interval for data update. The start time must be greater than 0 and the end time must not be earlier than the start time.

  • The start time and end time must be later than the UNIX timestamp corresponding to 00:00 on January 1, 2014.
  • The UNIX timestamp of the end time must be later than that of the start time.

Parameters

Name

Description

startTime

Start time.

endTime

End time.

timeUnit

Time unit.

Returns

Type

Description

UpdateOptions.Builder

UpdateOptions.Builder object.