Class PipelineExecuteOptions (3.53.0)

public final class PipelineExecuteOptions extends AbstractOptions<PipelineExecuteOptions>

Inheritance

java.lang.Object > com.google.cloud.firestore.pipeline.stages.AbstractOptions > PipelineExecuteOptions

Constructors

PipelineExecuteOptions()

public PipelineExecuteOptions()

Methods

isAtomic()

public boolean isAtomic()

Returns whether the pipeline is executed atomically. The default is false. See Also: #withAtomic(boolean)

Returns
Type Description
boolean

withAtomic(boolean atomic)

public PipelineExecuteOptions withAtomic(boolean atomic)

Sets whether the pipeline is executed atomically.

When true, the pipeline runs in a single read-write transaction that is committed automatically after the pipeline has executed, so either all of its writes (from insert, upsert, update and delete stages) are applied or none are. The default is false.

Parameter
Name Description
atomic boolean

Whether to execute the pipeline atomically.

Returns
Type Description
PipelineExecuteOptions

A new PipelineExecuteOptions with the atomic setting applied.

withExplainOptions(ExplainOptions options)

public PipelineExecuteOptions withExplainOptions(ExplainOptions options)
Parameter
Name Description
options ExplainOptions
Returns
Type Description
PipelineExecuteOptions

withIndexMode(String indexMode)

public PipelineExecuteOptions withIndexMode(String indexMode)
Parameter
Name Description
indexMode String
Returns
Type Description
PipelineExecuteOptions