Annotation Conventions

Many of the code examples in this book are annotated using markers in the form #1, #2, #3 and so forth. Whenever you see such a marker in a code listing, know that it is not part of the code per se. It is instead a reference to an annotation resolved at the bottom of the listing.

For example, following are some lines from Listing 5-4 in Chapter 5:

public class GiraphHelloWorld extends                                    #2   BasicComputation<IntWritable, IntWritable,                    NullWritable, NullWritable> {  @Override  public void compute(Vertex<IntWritable,                                #3                      IntWritable, NullWritable> vertex,                  Iterable<NullWritable> messages) {

Look at that listing, ...

Get Practical Graph Analytics with Apache Giraph now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.