A brief discussion on using FlinkKafkaProducer to implement Exactly Once semantics on the sink side

Abstract In some important flink data processing scenarios, it is necessary to implement Exactly Once data processing. Exactly Once means that when flink processes data, it can ensure that data is not lost and data is not repeated. The entire flink processing link is roughly divided into three links: Source -> Transform -> Sink. Selecting […]

An in-depth exploration of the C++ object model-The Semantics of Constructors

This section mainly explores the compiler’s interference in the “object construction process” Default Constructor’s build operation Two common misunderstandings among C++ novices 1. If any class does not define a default constructor, it will be synthesized. 2. The default constructor synthesized by the compiler will explicitly assign a default value to each data member. None […]

[C++] C++11 – rvalue reference and move semantics, lvalue reference and rvalue reference, rvalue reference usage scenarios and meaning, perfect forwarding, new class functions

Article directory C++11 5. Rvalue references and move semantics 5.1 lvalue references and rvalue references 5.2 Comparison between lvalue reference and rvalue reference 5.3 Usage scenarios and significance of rvalue references 5.4 rvalue reference reference lvalue and some more in-depth analysis of usage scenarios 5.5 Perfect forwarding 6. New class functions C++11 5. Rvalue reference […]

C++11 rvalue references and move semantics

Rvalue references and move semantics lvalue references and rvalue references lvalue reference rvalue reference Comparison between lvalue reference and rvalue reference Rvalue reference usage scenarios and meanings lvalue reference usage scenarios rvalue references and move semantics Other use cases for rvalue references Perfect forwarding & amp; & amp; universal reference in templates std::forward perfect forwarding […]

[C++11] Rvalue references and move semantics

Article directory 1. lvalue references and rvalue references 1.1 What is an lvalue? What is an lvalue reference? 1.2 What is an rvalue? What is an rvalue reference? 1.3 Note 1.4 Thinking 2. Summary of lvalue references and rvalue references 3. Usage scenarios and significance of rvalue references 3.1 Usage scenarios of lvalue references 3.2 […]

Flink-temporal semantics and Watermark

1. Time semantics Event Time: is the time when the event was created. It is usually described by the timestamp in the event. For example, in the collected log data, each log records its own generation time, and Flink accesses the event timestamp through the timestamp allocator. Ingestion Time: It is the time when data […]

New features of C++: rvalue references, move semantics, perfect forwarding

Article directory 1. What are lvalues and rvalues? 2. What are lvalue references and rvalue references? 2.1 lvalue reference 2.2 rvalue reference 2.3 Discussion on the nature of left and right value references 3. Rvalue reference and std::move usage scenarios 3.1 Rvalue references optimize performance and avoid deep copies Shallow copy repeated release deep copy […]

C++11 – rvalue references and move semantics

?Homepage:: My code loves spicy food Knowledge explanation: C++11 – rvalue reference Development environment: Visual Studio 2022 Preface: Rvalue reference is a very valuable syntax updated in C++11. It can be said that C++ emerged in pursuit of ultimate performance. In the past, we were very afraid of passing custom types. Value return, with rvalue […]

lvalue reference, rvalue reference, move semantics, perfect forwarding

Article directory 1. Value category 1. Discrimination between conventional lvalues and rvalues before C++11 a. Whether the address acquisition operation can be performed b. List some regular expressions 2. Checkmate value 3. Pure rvalue 2. Reference type 1. lvalue reference 2. Rvalue reference (introduced by C++11 standard) 3. Type conversion 1. Move semantics std::move Deep […]

[C++11] Rvalue references and move semantics

1. Lvalues and lvalue references 1. Lvalue – An expression expressing data (variable name or dereferenced pointer), which can be addressed and assigned (value can be modified). Lvalues can appear either to the left or to the right of an assignment symbol (“=”). 2. Lvalue reference Reference is to give an alias to an object, […]