Tag

Stream

0 views collected around this technical thread.

macrozheng
macrozheng
Jun 10, 2025 · Backend Development

Simplify Java Stream Processing with JDFrame: A Semantic DataFrame API

This article introduces JDFrame/SDFrame, a JVM‑level DataFrame‑style library that provides semantic, chainable APIs for Java 8 streams, covering quick start, dependency setup, example use cases, and detailed API categories such as matrix view, filtering, aggregation, distinct, grouping, sorting, joining, slicing, parameter settings, percentage conversion, partitioning, row‑number generation, and data replenishment, all illustrated with concise code snippets.

Data ProcessingJavaStream
0 likes · 16 min read
Simplify Java Stream Processing with JDFrame: A Semantic DataFrame API
Java Captain
Java Captain
Apr 17, 2025 · Backend Development

Java Development Tips: Enums, RESTful API Standards, Bean Conversion, Stream Operations, and Null/Assertion Handling

This article shares practical Java backend development techniques, covering safe enum usage, RESTful API design guidelines, generic bean conversion via JSON, effective Stream API patterns, and comprehensive null‑checking and assertion strategies to improve code reliability and maintainability.

AssertionsJavaREST API
0 likes · 13 min read
Java Development Tips: Enums, RESTful API Standards, Bean Conversion, Stream Operations, and Null/Assertion Handling
Architecture Digest
Architecture Digest
Apr 15, 2025 · Backend Development

JDFrame/SDFrame Java DataFrame Library: API Guide and Usage Examples

This article introduces the JDFrame and SDFrame Java libraries that provide DataFrame‑like, semantic stream processing APIs, demonstrates how to add Maven dependencies, shows quick‑start examples, detailed CRUD, filtering, grouping, sorting, joining, pagination, and other advanced operations with full code snippets for developers.

APIJavaStream
0 likes · 13 min read
JDFrame/SDFrame Java DataFrame Library: API Guide and Usage Examples
Cognitive Technology Team
Cognitive Technology Team
Apr 12, 2025 · Backend Development

Using CompletableFuture with Streams for Parallel Execution in Java

The article explains how to correctly combine Java's CompletableFuture with Stream API to achieve true asynchronous parallelism, highlights common pitfalls that lead to sequential execution, and provides the proper pattern of creating a CompletableFuture stream followed by a terminal operation.

CompletableFutureConcurrencyJava
0 likes · 3 min read
Using CompletableFuture with Streams for Parallel Execution in Java
Top Architecture Tech Stack
Top Architecture Tech Stack
Mar 13, 2025 · Backend Development

JDFrame/SDFrame: A JVM‑Level DataFrame‑like API for Simplified Stream Processing in Java

This article introduces JDFrame/SDFrame, a Java library that provides a DataFrame‑style, semantic API for JVM‑level stream processing, demonstrates quick start with Maven dependency, and showcases extensive examples covering filtering, aggregation, distinct, grouping, sorting, joining, partitioning, ranking, and data replenishment, helping developers write concise, readable data‑processing code.

APIJavaStream
0 likes · 17 min read
JDFrame/SDFrame: A JVM‑Level DataFrame‑like API for Simplified Stream Processing in Java
Sohu Tech Products
Sohu Tech Products
Mar 12, 2025 · Databases

Understanding Redis Streams: Core Commands and SpringBoot Integration

The article introduces Redis Streams as a Kafka‑like messaging structure, explains its fundamental concepts and seven core commands (XADD, XRANGE, XREAD, XGROUP CREATE, XREADGROUP, XACK, XTRIM), demonstrates integration with Spring Boot, and evaluates its fit for lightweight, low‑backlog queue scenarios.

Consumer GroupRedisRedis Commands
0 likes · 14 min read
Understanding Redis Streams: Core Commands and SpringBoot Integration
Java Architect Essentials
Java Architect Essentials
Mar 6, 2025 · Backend Development

When Java Streams and Lambdas Turn Into a Burden: Pitfalls and Best Practices

This article examines how the misuse of Java Stream and Lambda APIs can make code harder to read and maintain, and provides practical techniques such as proper line breaks, function extraction, careful filter logic, correct Optional usage, and cautious parallel stream adoption to keep code both elegant and efficient.

Best PracticesJavaStream
0 likes · 10 min read
When Java Streams and Lambdas Turn Into a Burden: Pitfalls and Best Practices
Top Architect
Top Architect
Feb 27, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code

This article examines how Java Stream and Lambda, while powerful for concise data processing, can become cumbersome when misused, and provides practical tips such as proper line breaks, function extraction, careful filter logic, safe Optional handling, and cautious use of parallel streams to keep code readable and maintainable.

Best PracticesJavaOptional
0 likes · 10 min read
Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code
Top Architect
Top Architect
Feb 11, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations

The article examines how Java Stream and Lambda, while powerful for concise code, can become cumbersome when overused, and offers practical tips such as proper line breaks, function extraction, predicate reuse, cautious Optional handling, and mindful use of parallel streams to maintain readability and performance.

BestPracticesCodeOptimizationJava
0 likes · 11 min read
Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations
Selected Java Interview Questions
Selected Java Interview Questions
Jan 16, 2025 · Backend Development

Ten Reasons to Prefer Traditional for Loop Over Stream.forEach for List Traversal in Java

Through benchmark tests, memory analysis, and code examples, this article presents ten compelling reasons why using a traditional for loop to traverse Java Lists often outperforms Stream.forEach in terms of performance, memory usage, control flow, exception handling, mutability, debugging, readability, and state management.

JavaPerformanceStream
0 likes · 16 min read
Ten Reasons to Prefer Traditional for Loop Over Stream.forEach for List Traversal in Java
Top Architect
Top Architect
Sep 6, 2024 · Backend Development

JDFrame/SDFrame: A JVM‑Level DataFrame API for Simplified Java Stream Processing

This article introduces JDFrame and SDFrame, two Java libraries that provide a DataFrame‑style, semantic API for simplifying stream operations, including dependency setup, quick‑start examples, matrix viewing, filtering, aggregation, deduplication, grouping, sorting, joining, pagination, window functions, and a comparison of their execution models, along with links to the source code and documentation.

APIJavaStream
0 likes · 18 min read
JDFrame/SDFrame: A JVM‑Level DataFrame API for Simplified Java Stream Processing
Java Architect Essentials
Java Architect Essentials
Sep 1, 2024 · Backend Development

JDFrame: A JVM‑Level DataFrame‑Like API for Simplified Java Stream Processing

This article introduces JDFrame/SDFrame, a Java library that provides a DataFrame‑style, semantic API for stream processing, covering quick start, dependency setup, extensive examples of filtering, aggregation, distinct, grouping, sorting, joining, and utility functions, along with Maven coordinates and source repository links.

APIData ProcessingStream
0 likes · 16 min read
JDFrame: A JVM‑Level DataFrame‑Like API for Simplified Java Stream Processing
DaTaobao Tech
DaTaobao Tech
Aug 23, 2024 · Fundamentals

Common Java Pitfalls and Their Solutions

The article outlines frequent Java pitfalls—including BigDecimal precision loss, immutable lists from Arrays.asList, double division by zero returning Infinity, null values in switch statements, stream filters mutating original objects, and autoboxing nulls causing NullPointerExceptions—and provides clear explanations and practical fixes to enhance code reliability.

Arrays.asListBigDecimalJava
0 likes · 5 min read
Common Java Pitfalls and Their Solutions
Selected Java Interview Questions
Selected Java Interview Questions
Jul 21, 2024 · Backend Development

Handling Duplicate Keys and Null Values with Java Stream toMap: A Practical Guide

This article explains how to convert a list of Java User objects into a Map using Stream's toMap collector, handling duplicate keys and null values with merge functions and Optional, and compares alternative approaches including manual HashMap population.

JavaOptionalStream
0 likes · 6 min read
Handling Duplicate Keys and Null Values with Java Stream toMap: A Practical Guide
macrozheng
macrozheng
Jul 11, 2024 · Backend Development

Mastering Java Stream toMap: Handling Duplicate Keys and Null Values

This article explains how to convert a list of Java objects into a Map using Stream's toMap collector, addresses duplicate key exceptions, demonstrates providing a merge function, handling null values with Optional, and compares alternative approaches such as manual loops, offering complete code examples.

JavaOptionalStream
0 likes · 7 min read
Mastering Java Stream toMap: Handling Duplicate Keys and Null Values
Code Ape Tech Column
Code Ape Tech Column
Jul 2, 2024 · Backend Development

How to Use Java Stream toMap with Duplicate Keys and Null Values

This article demonstrates how to convert a list of Java objects into a Map using Stream's toMap collector, addresses duplicate key exceptions by providing a merge function, handles null values with Optional, and compares stream-based solutions with traditional for-loop approaches.

DuplicateKeyJavaNullPointerException
0 likes · 6 min read
How to Use Java Stream toMap with Duplicate Keys and Null Values
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 4, 2024 · Databases

Redis Extended Data Types: Stream, Geospatial, Bitmap, Bitfield, and HyperLogLog

This article introduces Redis's five extended data types—Stream, Geospatial, Bitmap, Bitfield, and HyperLogLog—explaining their concepts, common commands, and practical code examples, and highlights how they address specific internet‑scale scenarios more efficiently than traditional relational solutions.

BitfieldBitmapData Types
0 likes · 6 min read
Redis Extended Data Types: Stream, Geospatial, Bitmap, Bitfield, and HyperLogLog
Java Tech Enthusiast
Java Tech Enthusiast
Feb 22, 2024 · Backend Development

Common Pitfalls of Arrays.asList in Java

When converting arrays to lists in Java, Arrays.asList cannot handle primitive arrays (treating them as a single element), returns a fixed‑size view that disallows add or remove operations, and shares its backing array so modifications affect both structures, so developers should use boxed streams or copy into a new ArrayList.

Arrays.asListJavaStream
0 likes · 4 min read
Common Pitfalls of Arrays.asList in Java
Architecture Digest
Architecture Digest
Jan 19, 2024 · Backend Development

Assembling Hierarchical Tree Structures with Java Streams, Caching and Message Queues

This article demonstrates how to efficiently build department and regional hierarchical trees in Java by fetching all records in a single database query, using Stream API, Lambda expressions, in‑memory grouping, Redis caching and RocketMQ for asynchronous updates, achieving sub‑second response times even with tens of thousands of nodes.

CachingJavaStream
0 likes · 11 min read
Assembling Hierarchical Tree Structures with Java Streams, Caching and Message Queues
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 30, 2023 · Backend Development

Three Ways to Merge Two Lists and Remove Duplicates in Java

This article demonstrates three practical techniques—using a HashSet, leveraging Java 8 Stream API, and applying Map's merge functionality—to combine two List collections while eliminating duplicate elements, complete with full Java code examples and output illustration.

DuplicateRemovalHashSetJava
0 likes · 5 min read
Three Ways to Merge Two Lists and Remove Duplicates in Java