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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.