com.hazelcast.projection

## Class Projection<I,O>

- java.lang.Object
- - com.hazelcast.projection.Projection<I,O>

- Type Parameters:
    `I` - input type
    `O` - output type
  All Implemented Interfaces:
    Serializable

      public abstract class Projection<I,O>
      extends Object
      implements Serializable

  Enables transforming object into other objects. Exemplary usage scenario is the project() method of the `IMap`

  Only 1:1 transformations allowed. Use an Aggregator to perform N:1 or N:M aggregations.

      {@code
            IMap employees = instance.getMap("employees");

            Collection names = employees.project(new Projection,String>(){

  Since:
    3.8
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Projection()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract O` | `transform(I input)` Transforms the input object into the output object.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Projection

          public Projection()

  - ### Method Detail

    - #### transform

          public abstract O transform(I input)

      Transforms the input object into the output object.
      Parameters:
        `input` - object.
      Returns:
        the output object.

Copyright © 2018. All rights reserved.