The cascading.pipe.assembly.SumBy
SubAssembly is used to coerce a set of values from one type to another
type - for example, to convert the field age
from a
String
to an
Integer
.
Example 9.5. Using Coerce
// incoming -> first, last, age
assembly =
new Coerce( assembly, new Fields( "age" ), Integer.class );
// outgoing -> first, last, age
Copyright © 2007-2012 Concurrent, Inc. All Rights Reserved.