Java 16 is Here and Key Takeaways for Java Developers

Java 16 is Here! New Features of Java 16 Simplified

Hey, Tea Lovers! Today I will briefly talk about the latest release of Java 16 on March 16, 2021. I will talk about the key takeaway from the features and improvements, which I think will affect the day-to-day life of a Java developer. This post is heavily based on the press release โ€œOracle Announces Java 16โ€. If you want to see it in more detail, you can check out the press release here. ...

April 4, 2021 ยท 6 min ยท Imran Shaikh
How to Install Apache Flink On Mac OS (2)

How to Install Apache Flink On Ubuntu

Hey, Tea Lovers! In this post, we will be talking about how to install Apache Flink on Ubuntu. It will be a very quick guide We will be installing the latest version of Apache Flink 1.12.1 on Ubuntu 20.04, though it applies to all the versions and possibly any newer one too. For the Installation of Apache Flink on Mac OS check out the post " How to Install Apache Flink On Mac OS". ...

March 14, 2021 ยท 4 min ยท Imran Shaikh
How to Install Apache Flink On Mac OS (1)

How to Install Apache Flink On Mac OS

Hey, Tea Lovers! In this post, we will be talking about how to install Apache Flink on Mac OS. It will be a very quick guide We will be installing the latest version of Apache Flink 1.12.1, though it applies to all the versions and possibly any newer one too. We have other posts on Flink Installation: Windows: How to Install Apache Flink On Local Windows Ubuntu: How to Install Apache Flink On Ubuntu ...

March 9, 2021 ยท 6 min ยท Imran Shaikh
How to Install Apache Flink On Local Windows

How to Install Apache Flink On Local Windows

Hey, Tea Lovers! In this post, we will be talking about how to install Apache Flink on the local Windows machine. It will be a very quick guide We will be installing the latest version of Apache Flink 1.12.1, though it applies to all the versions and possibly any newer one too. For other OS installations, I have written the following posts. For Mac OS refer to How to Install Apache Flink On Mac OS ...

March 6, 2021 ยท 4 min ยท Imran Shaikh
How to Install Latest Java and Set JAVA_HOME on Ubuntu

How to Install Latest Java and Set JAVA_HOME on Ubuntu

Hey, Tea lovers! In this post, we will have a look at how we can easily install the latest Java or JDK on the Ubuntu system. It will be a very quick and small post. Before You Start I will be installing Open JDK, and I will show the installation for JDK 8, JDK 11, and JDK 14 on Ubuntu. For the Windows user, I have already written a post on " Install Latest or Any Java Version in 3 Simple Steps: Windows". ...

March 1, 2021 ยท 4 min ยท Imran Shaikh
How to Select Specific Folders or Files As Input in Flink

How to Select Specific Folders or Files As Input in Flink

Hey, tea lovers! Today I will show you how to specifically select the desired folders or files in Flink Batch Job programmatically. We will discuss when given a root path you can decide which file or folder to read in Flink Batch Job. And why suddenly do I pick up this topic you say? Well, I was working on such a task myself where I needed to read the S3 files which are under folders with dates. Those date folders are in a rolling fashion like , 2021_01_13_1, 2021_01_13_2, 2021_01_13_3 and so on. And in these folders, there were multiple files, so based on the given date I needed to read all those files which are in the given date folder (the folder name should contain the date obviously). ...

February 20, 2021 ยท 7 min ยท Imran Shaikh
How to Use partitioningBy Collector in Java Stream API

How to Use partitioningBy Collector in Java Stream API

Hey, tea lovers! Today I will be talking about the partitioningBy Collector method of Stream API. I will be focusing on what is partitioningBy by method, where, and how to use it with different examples. I have already discussed How to use groupingBy Collector in Java Streams. Both partitioningBy and groupingBy are the java.util.stream.Collectors. partitioningBy is a terminal operation of the Stream API pipeline. ...

January 22, 2021 ยท 5 min ยท Imran Shaikh
How to Create a Multi-Database Pool in HikariCP

How to create a Multi-Database Pool in HikariCP

Hey, Tea lovers! Today we will go over a hack/way to create a multi-database pool in HikariCP. It is a continuation of the post " JDBC Connection Pooling Explained with HikariCP", where we talked about connection pooling and how we can create it using hikariCP. This post is not an explanation post, but rather shows one of the ways I used to create a common Class to access different connection pools of various databases. It is my solution from experience and not a standard approach. However, you are free to use the code as it is very generic and can be used right away. ...

December 3, 2020 ยท 9 min ยท Imran Shaikh
how to use batch in jdbc

How to Use Batch in JDBC to Insert huge data

Hey. Tea Lovers! Today we will discuss batching and how to use batch in JDBC to insert huge data. Before jumping in, I would suggest you look at my previous posts, " How to Achieve Greatness in JDBC Performance" and " JDBC Connection Pooling Explained with HikariCP". This will help you to further increase the performance along with reliability, maintainability, and flexibility. Why use Batch Insertion Many of you have worked on some projects where you needed to insert a large amount of data into the database. I prefer just using plain JDBC for this kind of job to give the operation a significant boost. But inserting the record one by one as we do is a very slow process. We need to wait until the data of a single record goes to the database, insert happens and then over the network, an acknowledgment occurs, phew! Luckily in JDBC, we have batch operations. With this, we can insert the data in batches rather than one by one, giving a huge advantage. ...

November 30, 2020 ยท 7 min ยท Imran Shaikh
How to use groupingBy Collector in Java Streams

How to use groupingBy Collector in Java Streams

Hey, Tea lovers! Today we will talk about the groupingBy Collector method of Java Stream API. Yes, it is similar to GROUP BY of SQL since it groups and collects the objects based on a given condition or value. In case you want to get familiar with the Stream API, I recommend you to read the post " Be More Functional with Javaโ€™s Functional Interfaces" and " Stream API: The Hero Without a Cape". These will help you understand the post and might refresh your memory if you already know. Prepare your tea then, to sip and code. ...

October 15, 2020 ยท 5 min ยท Imran Shaikh