Class FirestoreV1.PartitionQuery.Builder
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.firestore.FirestoreV1.PartitionQuery.Builder
-
- Enclosing class:
- FirestoreV1.PartitionQuery
public static final class FirestoreV1.PartitionQuery.Builder extends java.lang.ObjectA type safe builder forFirestoreV1.PartitionQueryallowing configuration and instantiation.This class is part of the Firestore Connector DSL, it has a type safe builder accessible via
FirestoreIO.v1().read().partitionQuery().- See Also:
FirestoreIO.v1(),FirestoreV1.read(),FirestoreV1.Read.partitionQuery(),FirestoreV1.PartitionQuery,PartitionQueryRequest,RunQueryResponse, google.firestore.v1.Firestore.PartitionQuery, google.firestore.v1.PartitionQueryRequest, google.firestore.v1.PartitionQueryResponse
-
-
Constructor Summary
Constructors Constructor Description Builder(org.apache.beam.sdk.io.gcp.firestore.JodaClock clock, org.apache.beam.sdk.io.gcp.firestore.FirestoreStatefulComponentFactory firestoreStatefulComponentFactory, RpcQosOptions rpcQosOptions, boolean nameOnlyQuery, @Nullable org.joda.time.Instant readTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FirestoreV1.PartitionQuerybuild()Create a new instance ofTransformfrom the current builder state.FirestoreV1.PartitionQuery.BuilderwithNameOnlyQuery()Update produced queries to only retrieve their__name__thereby not retrieving any fields and reducing resource requirements.BldrTwithReadTime(@Nullable org.joda.time.Instant readTime)BldrTwithRpcQosOptions(RpcQosOptions rpcQosOptions)Specify theRpcQosOptionsthat will be used when bootstrapping the QOS of each running instance of theTransformcreated by this builder.
-
-
-
Constructor Detail
-
Builder
public Builder(org.apache.beam.sdk.io.gcp.firestore.JodaClock clock, org.apache.beam.sdk.io.gcp.firestore.FirestoreStatefulComponentFactory firestoreStatefulComponentFactory, RpcQosOptions rpcQosOptions, boolean nameOnlyQuery, @Nullable org.joda.time.Instant readTime)
-
-
Method Detail
-
build
public FirestoreV1.PartitionQuery build()
Create a new instance ofTransformfrom the current builder state.- Returns:
- a new instance of
Transformfrom the current builder state.
-
withNameOnlyQuery
public FirestoreV1.PartitionQuery.Builder withNameOnlyQuery()
Update produced queries to only retrieve their__name__thereby not retrieving any fields and reducing resource requirements.- Returns:
- this builder
-
withReadTime
public final BldrT withReadTime(@Nullable org.joda.time.Instant readTime)
-
withRpcQosOptions
public final BldrT withRpcQosOptions(RpcQosOptions rpcQosOptions)
Specify theRpcQosOptionsthat will be used when bootstrapping the QOS of each running instance of theTransformcreated by this builder.NOTE This method behaves as set, mutating the value in this builder instance.
- Parameters:
rpcQosOptions- The QOS Options to use when bootstrapping and running the builtTransform.- Returns:
- this builder
- See Also:
RpcQosOptions,RpcQosOptions.defaultOptions(),RpcQosOptions.newBuilder()
-
-