Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “We’re using PyArrow in this example, but if you have the ArrowDeviceArray
struct definition, you could create and populate the struct without ever needing to directly include or link against the Arrow libraries!”
A block of code is set as follows:
>>> import numba.cuda >>> import pyarrow as pa >>> from pyarrow import cuda >>> import numpy as np >>> from pyarrow.cffi import ffi
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
std::unique_ptr<arrow::ArrayBuilder> tmp; // returns a status, handle the error case arrow::MakeBuilder(arrow::default_memory_pool(), st_type, &tmp); std::shared_ptr<arrow::StructBuilder> builder; builder.reset(static_cast<arrow::StructBuilder*>( tmp.release()));
Any command-line input or output is written as follows:
$ mkdir arrow_chapter1 && cd arrow_chapter1 $ go mod init arrow_chapter1 $ go get -u github.com/apache/arrow/go/v17/arrow@latest
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “You'll notice that for the Filter and Project nodes in the figure, since they each use a compute expression, there is a sub-tree of the execution graph representing the expression tree.”
Tips or important notes
Appear like this.