I
- input typeO
- output type@FunctionalInterface public interface Projection<I,O> extends Serializable
IMap
Only 1:1 transformations allowed. Use an Aggregator to perform N:1 or N:M aggregations.
IMap<String, Employee> employees = instance.getMap("employees"); Collection<String> names = employees.project(new Projection<Map.Entry<String,Employee>,String>(){ @Override public String transform(Map.Entry<String, Employee> entry){ return entry.getValue().getName(); } });
Modifier and Type | Method and Description |
---|---|
O |
transform(I input)
Transforms the input object into the output object.
|
Copyright © 2024 Hazelcast, Inc.. All rights reserved.