Class ContinuousQueryOptions
Continuous query options.
public sealed record ContinuousQueryOptions : IEquatable<ContinuousQueryOptions>
- Inheritance
-
ContinuousQueryOptions
- Implements
- Inherited Members
Constructors
ContinuousQueryOptions()
Initializes a new instance of the ContinuousQueryOptions class.
public ContinuousQueryOptions()
ContinuousQueryOptions(IContinuousQueryWatermark?, ICollection<string>?, ICollection<TableRowEventType>?, int, TimeSpan, bool)
Continuous query options.
public ContinuousQueryOptions(IContinuousQueryWatermark? Watermark, ICollection<string>? ColumnNames, ICollection<TableRowEventType>? EventTypes, int PageSize, TimeSpan PollInterval, bool EnableEmptyBatches = false)
Parameters
Watermark
IContinuousQueryWatermarkStarting watermark. When null, the query will start from the current time. Watermark can be obtained from physical time (FromInstant(Instant)) or from a previous event (GetWatermark()).
The default value is null, meaning the query will start from the current time.ColumnNames
ICollection<string>Column names to include. When null, all columns are included.
By default, all columns are included.EventTypes
ICollection<TableRowEventType>Event types to include. When null, all event types are included.
By default, all event types are included.PageSize
intPer-partition page size.
Continuous Query polls every partition in a loop. This parameter controls the number of entries that will be requested from a single partition in one network call. Therefore, the maximum number of entries that the query may hold in memory at any given time ispageSize * partitions
. The default value is 1000.PollInterval
TimeSpanPoll interval.
The default value is 1 second.EnableEmptyBatches
boolWhen true, empty batches are returned when there are no new events to track watermark updates.
The default value is false, meaning that empty batches are not returned.
Fields
Default
Default continuous query options.
public static readonly ContinuousQueryOptions Default
Field Value
Properties
ColumnNames
Column names to include. When null, all columns are included.
By default, all columns are included.public ICollection<string>? ColumnNames { get; init; }
Property Value
EnableEmptyBatches
When true, empty batches are returned when there are no new events to track watermark updates.
The default value is false, meaning that empty batches are not returned.public bool EnableEmptyBatches { get; init; }
Property Value
EventTypes
Event types to include. When null, all event types are included.
By default, all event types are included.public ICollection<TableRowEventType>? EventTypes { get; init; }
Property Value
PageSize
Per-partition page size.
Continuous Query polls every partition in a loop. This parameter controls the number of entries that will be requested from a single partition in one network call. Therefore, the maximum number of entries that the query may hold in memory at any given time ispageSize * partitions
.
The default value is 1000.
public int PageSize { get; init; }
Property Value
PollInterval
Poll interval.
The default value is 1 second.public TimeSpan PollInterval { get; init; }
Property Value
Watermark
Starting watermark. When null, the query will start from the current time. Watermark can be obtained from physical time (FromInstant(Instant)) or from a previous event (GetWatermark()).
The default value is null, meaning the query will start from the current time.public IContinuousQueryWatermark? Watermark { get; init; }