<?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE mapper PUBLIC “-//mybatis.org//DTD Mapper 3.0//EN” “http://mybatis.org/dtd/mybatis-3-mapper.dtd”> <mapper namespace=”com.powernode.mybatis.mappers.CarMapper”> <select id=”selectById” resultType=”Car”> select id as id, car_num as carNum, brand as brand, guide_price as guidePrice, produce_time as produceTime, car_type as carType from t_car where id = #{id}; </select> <select id=”selectAll” resultType=”Car”> select id as id, car_num as carNum, brand as brand, guide_price […]
Tag: tmap
Redis: bitmap+Bloom filter
This article will explain the concepts, commands, and application scenarios of bitmap, the concept of bloom filters and the use of bitmap to implement bloom filters. bitmap bitmap concept Bitmap is a special data structure used to handle bit operations. It is a string composed of binary bits (that is, a binary array, each bit […]
[MyBatis] 3. ResultMap and multi-table query processing
ResultMap and multi-table query processing When the field name is inconsistent with the real class name Use aliases for processing Field name: emp_name Entity class name: empName How to write it in the mapping file: <select id=”getAllEmp” resultType=”Emp”> select eid, emp_name empName, age, sex, email, did from t_emp </select> Use global configuration to map underscore […]
Netmap installation and use and user protocol stack implementation
Article directory 1. Install and compile netmap 2. Use netmap 3. How to obtain original data 3.1. Netmap implementation principle 3.2. Protocol stack explanation 3.2. Ethernet protocol 3.3. IP protocol 4. Run and write your own code 1. Install and compile netmap github address git clone https://github.com/luigirizzo/netmap 1. Enter the directory cd netmap-master/LINUX 2. Install […]
Redis Bitmap: The secret weapon to achieve tens of millions of user sign-ins
Article directory Preface Specific application scenarios 1. Statistics of users’ visits in one day need Design ideas Capacity estimate Perform named simulation code example Show results 2. User daily check-in function need Design ideas Capacity estimate Perform named simulation code example Show results Summarize Foreword 1. Before specific application, it is necessary to first understand […]
Conversion between HOject and Bitmap types
/// <summary> /// Quickly convert color Hobject to bitmap /// </summary> /// <param name=”hObject”></param> /// <returns></returns> public Bitmap FastHobject2Bitmap24(HObject hObject) {<!– –> //Get image size HTuple width0 = new HTuple(); HTuple height0 = new HTuple(); HTuple Pointer = new HTuple(); HTuple type = new HTuple(); HTuple width = new HTuple(); HTuple height = new HTuple(); […]
SpringBoot+Redis BitMap implements check-in and statistics functions
Introduction In each project, we may need to use sign-in and statistical functions. After signing in, users will be given some gifts to attract users to continue to be active on the platform. The check-in function can be implemented through the BitMap function in Redis 1. Basic usage of Redis BitMap BitMap basic syntax and […]
Spring Boot integrates Redis BitMap to implement sign-in and statistics functions~
Introduction In each project, we may need to use sign-in and statistical functions. After signing in, users will be given some gifts to attract users to continue to be active on the platform. The check-in function can be implemented through the BitMap function in Redis 1. Basic usage of Redis BitMap BitMap basic syntax and […]
[MyBatis] Customize three mapping relationships of resultMap
Table of Contents 1. One-to-One mapping (One-to-One) 1.1 Table relationship 1.2 resultMap sets custom mapping 2. One-to-Many Mapping (One-to-Many) 2.1 Create entities 2.2 Processing mapping relationships in cascade mode 2.3 Define SQL 2.4 OrderMapper interface 2.5 Writing the business logic layer 2.6 Junit test 3. Many-to-Many Mapping (Many-to-Many) 3.1 Table relationships 3.2 Create entities 3.3 […]
Spring Boot + Redis BitMap implements check-in and statistics functions
Introduction In each project, we may need to use sign-in and statistical functions. After signing in, users will be given some gifts to attract users to continue to be active on the platform. The check-in function can be implemented through the BitMap function in Redis 1. Basic usage of Redis BitMap BitMap basic syntax and […]