public final class Projections extends Object
Projection
instances.Modifier and Type | Method and Description |
---|---|
static <T> Projection<T,T> |
identity()
Returns a projection that does no transformation.
|
static <I> Projection<I,Object[]> |
multiAttribute(String... attributePaths)
Returns a projection that extracts the value of the given
attributePaths . |
static <I,O> Projection<I,O> |
singleAttribute(String attributePath)
Returns a projection that extracts the value of the given
attributePath . |
public static <T> Projection<T,T> identity()
If you use the returned projection in a 3.9 cluster it may cause a serialization exception.
public static <I,O> Projection<I,O> singleAttribute(String attributePath)
attributePath
.O
- Output typeattributePath
- single attribute path, path must not be null or emptypublic static <I> Projection<I,Object[]> multiAttribute(String... attributePaths)
attributePaths
.
The attribute values will be returned as an Object[]
array from each projection call.attributePaths
- attribute paths, paths must not be null or emptyCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.