The new feature of Java 8 - stream comprehensive operation

This is a comprehensive exercise of stream stream collection. Before, I also wrote some common methods, such as conveyor belt: Java 8 set operation easy to use in work , this article is a supplement, more specific and structural, for everyone to learn, code can run, code can run, code can run!!! In addition, for the relevant usage of functional ...

Added by deed02392 on Sun, 15 Dec 2019 16:29:00 +0200

Group by multiple columns

How to group multiple columns in LINQ Similar in SQL: SELECT * FROM <TableName> GROUP BY <Column1>,<Column2> How to convert it to LINQ: QuantityBreakdown ( MaterialID int, ProductID int, Quantity float ) INSERT INTO @QuantityBreakdown (MaterialID, ProductID, Quantity) SELECT MaterialID, ProductID, SUM(Q ...

Added by AlanG on Sun, 15 Dec 2019 16:15:05 +0200

PHP for a simple data collection

Introduction When it comes to data collection, python comes to mind first. The code is simple, efficient and easy to implement. How does PHP implement data collection?It's simple. concept What is data collection?Below is the introduction of Baidu Encyclopedia: Data collection, also known as Data Acquisition Is an interface that uses a device to ...

Added by agnalleo on Sun, 15 Dec 2019 08:00:42 +0200

Small problems of Scala multithreading in spark process

This time, we changed the source code of ThriftServer and added some services. In the middle of the change, we encountered such a problem. When we submitted tasks asynchronously, we wanted to make them multithreaded. At the beginning, we used scala's Actor, which passed sqlcontext and sql. We found that every sparkSessionId cha ...

Added by 88fingers on Wed, 11 Dec 2019 17:15:14 +0200

Java connects to manage database through JDBC

Third party classes are needed to access MySQL database. These third party classes are all compressed in a file called Jar. In order for the code to use third-party classes, you need to import mysql's special Jar package for the project Attach the download address link of the download jar package: https://pan.baidu.com/s/16BdVevqO6ezgtVPdwKar0 ...

Added by philspliff on Tue, 10 Dec 2019 22:03:32 +0200

Using the Specification of Spring Data JPA to build database query

The best feature of Spring Data JPA is that it can easily create query SQL by generating query by custom method name. Spring Data JPA provides a Repository programming model. The simplest way is to extend JPA Repository. We get a bunch of common CRUD methods, such as save, findAll, delete, etc. And many database single table query interfaces c ...

Added by yuws on Tue, 10 Dec 2019 14:00:20 +0200

User manual for tablet store combined with Blink public cloud

Preface In this paper, we will introduce the process of creating the source table and result table jobs in Blink real-time computing platform. Table storage channel service Form store Channel service It is a full incremental integrated service based on the data interface of the table store. Through a set of Tunnel Service API s and SDK s, it ...

Added by uidzer0 on Mon, 09 Dec 2019 02:20:07 +0200

Restore the deleted MySQL data on another server

Database backup statement mysqldump -S /tmp/mysql3309.sock -u root -pMySQL8.0 \ --single-transaction \ --quick --flush-logs \ --triggers \ --routines \ --events \ --set-gtid-purged=OFF \ --databases testdb > testdb.dump The following data exists in table nw during backup mysql> select * from nw; +---------------------+ | dt ...

Added by Pyrite on Sun, 08 Dec 2019 20:52:47 +0200

Python crawler project -- new houses in hot cities of crawler

This actual battle is to use reptiles to climb the new house of chainman (statement: the content is only for learning and communication, not for commercial use) Environmental Science win8, python 3.7, pycharm text 1. Target website analysis Through analysis, find out the relevant url, determine the request mode, whether there is js encryption 2 ...

Added by Mactek on Sun, 08 Dec 2019 16:30:30 +0200

Use the MaxCompute Java SDK to run security related commands

Students who use MaxCompute Console may have used MaxCompute security related commands. The official document has a detailed MaxCompute Safety Guide , and gives Summary of safety related statements. In short, Privilege management,Column level access control,Project space security configuration as well as Resource sharing across project spa ...

Added by phreud on Sat, 07 Dec 2019 20:24:11 +0200