- Real-time Analytics with Storm and Cassandra
- Shilpi Saxena
- 232字
- 2021-07-23 19:52:05
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The NumWorker
configuration or TOPOLOGY_WORKERS
configuration defined in Storm."
A block of code is set as follows:
// instantiates the new builder object TopologyBuilder builder = new TopologyBuilder(); // Adds a new spout of type "RandomSentenceSpout" with a parallelism hint of 5 builder.setSpout("spout", new RandomSentenceSpout(), 5);
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are highlighted:
public void execute(Tuple tuple) { String sentence = tuple.getString(0); for(String word: sentence.split(" ")) { _collector.emit(tuple, new Values(word)); //1 } _collector.ack(tuple); //2 } public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word")); //3 } }
Any command-line input or output is written as follows:
sudo apt-get -qy install rabbitmq-server
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: " Go to the Admin tab and select Policies and click on Add policy".
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- 大學(xué)計(jì)算機(jī)基礎(chǔ)(第三版)
- AngularJS Testing Cookbook
- Python王者歸來
- Unity Shader入門精要
- 小程序開發(fā)原理與實(shí)戰(zhàn)
- 0 bug:C/C++商用工程之道
- Scratch3.0趣味編程動(dòng)手玩:比賽訓(xùn)練營(yíng)
- Vue.js 3應(yīng)用開發(fā)與核心源碼解析
- 深入解析Java編譯器:源碼剖析與實(shí)例詳解
- Mastering Apache Camel
- SAS編程演義
- Getting Started with the Lazarus IDE
- 測(cè)試架構(gòu)師修煉之道:從測(cè)試工程師到測(cè)試架構(gòu)師(第2版)
- React.js 16從入門到實(shí)戰(zhàn)