August 2017
Beginner to intermediate
284 pages
6h 51m
English
A Trident projection keeps only those fields in the stream that are specified in the projection operation. Suppose an input stream contains three fields, x, y, and z, and we are passing field x to the projection operation, then the output tuples will contain a single field, x. Here is the piece of code that shows how we can use the projection operation:
mystream.project(new Fields("x"))
The following diagram shows the Trident projection:

Read now
Unlock full access