Flink keying state AggregatingState development example

1, Keying status description Referring to the description on the official website, several keying states are introduced as follows: ValueState: save a value that can be updated and retrieved (as mentioned above, each value corresponds to the key of the current input data, so each key received by the operator may correspond to a value). This v ...

Posted by kumar_ldh on Thu, 17 Feb 2022 17:11:52 +0100

In depth understanding of String

preface *** reference material: Deep understanding of String in Java 1, Analysis of the underlying source code of String class Let's take a look at the source code of the String class: public final class String implements java.io.Serializable, Comparable<String>, CharSequence { /** The value is used for character storage ...

Posted by firecircle on Thu, 17 Feb 2022 17:12:36 +0100

Divide and conquer -- chessboard coverage (JAVA)

Problem Description: In a chessboard composed of 2^k * 2^k squares, just one square is different from other squares. This square is called a special square, and the chessboard with a special square is called a special chessboard. When k ^ 4 is in different positions on the chessboard, there will be a special case, for example, when k ^ 4 is in ...

Posted by gte806e on Thu, 17 Feb 2022 16:19:46 +0100

Java note IO stream

1, Use of File class 1. Use of file class Use of File class① An object of the File class that represents a File or a File directory (commonly known as a folder)② The File class is declared in Java Under IO package ③ The File class involves the creation, deletion, renaming, modification time, File size and other methods of files or Fi ...

Posted by hnxuying on Thu, 17 Feb 2022 16:08:03 +0100

Application of RabbitMQ in practical projects

Application of RabbitMQ in practical projects Business scenario explain: For some reasons, the specific business is not explained. The general business scenario is that module A will send A message to module B, and module B will update the local cache encache And module B is A cluster deployment in the project. Switch selection: 1. fa ...

Posted by poe on Thu, 17 Feb 2022 14:48:24 +0100

java reflection application foundation, super detailed

summary Reflection is one of the features of Java programming language. It allows running Java programs to check themselves, or "self-examination", also known as "introspection". Reflection is so powerful that it can even directly manipulate the private properties of the program. We all have a concept in the previous study. ...

Posted by Hurklefish on Thu, 17 Feb 2022 14:28:32 +0100

Message queuing: pulsar installation and deployment

Hostnames are confused 1. Preconditions Install java1 8. Zookeeper is installed independently. There will be no detailed installation here 2. Download apache-pulsar-2.9.1-bin.tar.gz https://pulsar.apache.org/en/download/ 3. Initialize and create a cluster Cluster metadata initialization tip:  you only need to write these metadata once. b ...

Posted by studio805 on Thu, 17 Feb 2022 13:42:13 +0100

I won't get off work until I finish this article on Java basics

TIP This article is included in< Introduction · YuQue >For more in-depth articles, please go to< Introduction · YuQue> . data type There are eight basic data types in the Java language: boolean/1byte/8char/16short/16int/32float/32long/64double/64 The eight basic data types are divided into four categories: ...

Posted by lisa71283 on Thu, 17 Feb 2022 13:41:46 +0100

JDBC multiple database connection pool connection demonstration

catalogue 1.C3P0 Preparation before use: Method 1: hard coding (database configuration is written into the code) Method 2: write configuration file and separate code and configuration (development recommendation) 2.DBCP Preparation before use: Method 1: hard coding (database configuration is written into the code) Method 2: write config ...

Posted by cnl83 on Thu, 17 Feb 2022 12:16:23 +0100

Public enumeration component Enum

rdf-component-enum Do you worry about adding several methods to get values or enumeration every time you add an enumeration class? Although they are just copy and paste, they are still unbearable. The existence of this component is to solve this problem. 1, Effect This component provides the basic functions of enumeration and some commo ...

Posted by sabbagh on Thu, 17 Feb 2022 11:35:40 +0100