Documentation
¶
Index ¶
- Variables
- type WMB
- func (*WMB) Descriptor() ([]byte, []int)deprecated
- func (x *WMB) GetIdle() bool
- func (x *WMB) GetOffset() int64
- func (x *WMB) GetPartition() int32
- func (x *WMB) GetProcessorCount() int32
- func (x *WMB) GetWatermark() int64
- func (*WMB) ProtoMessage()
- func (x *WMB) ProtoReflect() protoreflect.Message
- func (x *WMB) Reset()
- func (x *WMB) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pkg_apis_proto_watermark_watermark_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type WMB ¶
type WMB struct {
// Idle is set to true if the given processor entity hasn't published anything
// to the offset timeline bucket in a batch processing cycle.
// Idle is used to signal an idle watermark.
Idle bool `protobuf:"varint,1,opt,name=idle,proto3" json:"idle,omitempty"`
// Offset is the monotonically increasing index/offset of the buffer (buffer is the physical representation
// of the partition of the edge).
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// Watermark is tightly coupled with the offset and will be monotonically increasing for a given ProcessorEntity
// as the offset increases.
// When it is idling (Idle==true), for a given offset, the watermark can monotonically increase without offset
// increasing.
Watermark int64 `protobuf:"varint,3,opt,name=watermark,proto3" json:"watermark,omitempty"`
// Partition to identify the partition to which the watermark belongs.
Partition int32 `protobuf:"varint,4,opt,name=partition,proto3" json:"partition,omitempty"`
// Optional expected processor count for source watermarks.
// When set, the fetcher will wait until this many processors are active before
// computing a valid watermark.
ProcessorCount *int32 `protobuf:"varint,5,opt,name=processor_count,json=processorCount,proto3,oneof" json:"processor_count,omitempty"`
// contains filtered or unexported fields
}
WMB is used in the KV offset timeline bucket as the value for the given processor entity key.
func (*WMB) Descriptor
deprecated
func (*WMB) GetPartition ¶
func (*WMB) GetProcessorCount ¶ added in v1.8.0
func (*WMB) GetWatermark ¶
func (*WMB) ProtoMessage ¶
func (*WMB) ProtoMessage()
func (*WMB) ProtoReflect ¶
func (x *WMB) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.