Class ChangeStreamsConstants
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.ChangeStreamsConstants
-
public class ChangeStreamsConstants extends java.lang.ObjectSingle place for defining the constants used in theSpanner.readChangeStreams()connector.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_CHANGE_STREAM_NAMEThe default change stream name for a change stream query is the emptyString.static com.google.cloud.TimestampDEFAULT_INCLUSIVE_END_ATThe default end timestamp for a change stream query isMAX_INCLUSIVE_END_AT.static com.google.cloud.TimestampDEFAULT_INCLUSIVE_START_ATThe default start timestamp for a change stream query isTimestamp.MIN_VALUE.static com.google.cloud.spanner.Options.RpcPriorityDEFAULT_RPC_PRIORITYThe default priority for a change stream query isOptions.RpcPriority.HIGH.static org.joda.time.DurationDEFAULT_WATERMARK_REFRESH_RATEThe default period for which we will re-compute the watermark of theDetectNewPartitionsDoFnstage.static com.google.cloud.TimestampMAX_INCLUSIVE_END_ATRepresents the max end at that can be specified for a change stream.static PartitionMetadataSAMPLE_PARTITIONWe use a bogus partition here to estimate the average size of a partition metadata record.static intTHROUGHPUT_WINDOW_SECONDSThe sliding window size in seconds for throughput reporting.
-
Constructor Summary
Constructors Constructor Description ChangeStreamsConstants()
-
-
-
Field Detail
-
MAX_INCLUSIVE_END_AT
public static final com.google.cloud.Timestamp MAX_INCLUSIVE_END_AT
Represents the max end at that can be specified for a change stream.
-
DEFAULT_CHANGE_STREAM_NAME
public static final java.lang.String DEFAULT_CHANGE_STREAM_NAME
The default change stream name for a change stream query is the emptyString.- See Also:
- Constant Field Values
-
DEFAULT_INCLUSIVE_START_AT
public static final com.google.cloud.Timestamp DEFAULT_INCLUSIVE_START_AT
The default start timestamp for a change stream query isTimestamp.MIN_VALUE.
-
DEFAULT_INCLUSIVE_END_AT
public static final com.google.cloud.Timestamp DEFAULT_INCLUSIVE_END_AT
The default end timestamp for a change stream query isMAX_INCLUSIVE_END_AT.
-
DEFAULT_RPC_PRIORITY
public static final com.google.cloud.spanner.Options.RpcPriority DEFAULT_RPC_PRIORITY
The default priority for a change stream query isOptions.RpcPriority.HIGH.
-
THROUGHPUT_WINDOW_SECONDS
public static final int THROUGHPUT_WINDOW_SECONDS
The sliding window size in seconds for throughput reporting.- See Also:
- Constant Field Values
-
SAMPLE_PARTITION
public static final PartitionMetadata SAMPLE_PARTITION
We use a bogus partition here to estimate the average size of a partition metadata record.The only dynamically allocated size field here is the "parentTokens", which is a set and can expand. In practice, however, partitions have 1 to 2 parents at most.
-
DEFAULT_WATERMARK_REFRESH_RATE
public static final org.joda.time.Duration DEFAULT_WATERMARK_REFRESH_RATE
The default period for which we will re-compute the watermark of theDetectNewPartitionsDoFnstage.
-
-