public <I extends java.io.Serializable> GearsBuilder<I> map(
	gears.operations.MapOperation<T,I> mapper)

Maps each input record in the pipe to an output record, one-to-one.

Parameters

Type parameters:

NameDescription
IThe template type of the returned builder

Function parameters:

NameTypeDescription
mapperMapOperation<T,​I>For each input record, returns a new output record

Returns

Returns a GearsBuilder object with a new template type.

Example

Map each record to its string value:

GearsBuilder.CreateGearsBuilder(reader).
 		map(r->{
    		return r.getStringVal();
});