c + + foundation 2 -- classes and objects

1. Composition of class Class class name{ Public: / / public member Function 1; Variable 1     ......       Private: / / private member Function 2; Variable 2     ......      };   #include <iostream> using namespace std; class score{     public:     inline void setscore(int m,int f);     inline void showscore();      ...

Posted by ivytony on Fri, 13 Dec 2019 12:53:11 -0800

Summary of ElasticSearch

1. Three clients of ES a.Transport Client, transport based connection, using port 9300 of es b.JestClient, http based connection, using port 9200 of es 3.RestClient, http based connection, official recommendation of es, 9200 port 2. Document source: es aggregation based on jestClient: https://blog.csdn.net/lvyuan1234/artic ...

Posted by pnoeric on Fri, 13 Dec 2019 09:11:44 -0800

. NETCore ORM visit domestic daydream database

Preface Founded in 2000, Wuhan Dameng database Co., Ltd. is a basic software enterprise under China Electronic Information Industry Group (CEC). It specializes in the research and development, sales and service of database management system, and provides users with services such as big data platform architecture consultation, data technology pl ...

Posted by frontlines on Thu, 12 Dec 2019 23:14:09 -0800

Lucene note 26 - using Lucene - Custom QueryParser to solve some query performance problems

I. reasons for using custom QueryParser For some query parsers (fuzzy query, wild card query) the performance will be reduced when querying, so consider canceling these queries. In the specific query, there is probably a requirement: the obtained query range is a number, so the original QueryParser must be expanded to carry ...

Posted by CorkyMcDoogle on Thu, 12 Dec 2019 13:46:11 -0800

Lucene note25 - use of Lucene - scoring settings by domain

I. demand Set scoring rules according to the file name, or double the score of the latest year according to the modification time of the document, reduce the score beyond one year, etc. II. Specific implementation Here, the scoring rule is modified according to the file name. The scores containing "JRE" and "S ...

Posted by darkshine on Thu, 12 Dec 2019 08:55:10 -0800

Build a simple high available load balancing cluster

I. build lvs cluster of DR mode Environment: DS: 192.168.4.53 VIP: 192.168.4.100 RS: 192.168.4.51 192.168.4.52 1. Establish three experimental machines and configure ip and yum warehouses 2. Configure VIP on DR [root@53 ~]#cp /etc/sysconfig/network-scripts/ifcfg-eth0 {,:0} [root@53 ~]#vim /etc/sysconfig/network-scripts/ifcfg-e ...

Posted by ericorx on Wed, 11 Dec 2019 07:00:58 -0800

The basis of matplotlib -- the use of pyplot

I. Basic Concepts (composition) matplotlib consists of three layers: scripting, artist and backend In the whole matplotlib, all the elements that can be seen in the graph belong to Artist object, that is, all the elements composed of title, axis label, scale, etc. are instances of Artist object (1) if Artist is compared to dr ...

Posted by arsitek on Wed, 11 Dec 2019 01:15:39 -0800

Using docker to install Hadoop and Spark

Using docker configuration to install hadoop and spark Install hadoop and spark images respectively Install hadoop image docker selected Mirror Address , the version of hadoop provided by this image is relatively new, and jdk8 is installed, which can support the installation of the latest version of spark. docker pull uhopp ...

Posted by shantred on Tue, 10 Dec 2019 22:46:53 -0800

bs4 crawls comics and writes them to the TXT file

What we bring today is to crawl the comic information and links on the comic website This time, we will use bs4, which is Beautiful Soup Let's introduce * * Beautiful Soup * *:Beautiful Soup is a Python library that can extract data from HTML or XML files. It can realize the usual way of document navigation, search and modificat ...

Posted by dcjones on Tue, 10 Dec 2019 17:22:02 -0800

spark reads hive data java

Requirement: read out the data in hive and write it into es. Environment: spark 2.0.2 1. enableHiveSupport() is set in sparksession SparkConf conf = new SparkConf().setAppName("appName").setMaster("local[*]"); SparkSession spark = SparkSession .builder() .appName("Java Spark SQL basic exam ...

Posted by NSW42 on Tue, 10 Dec 2019 14:30:32 -0800