Since this transformer is stateless, all instances would be considered equal.
So for optimization purposes we limit it to a single, singleton instance.
| Modifier and Type | Class and Description |
|---|---|
| private static class | DistinctResultTransformer.Identity
Helper class to handle distincting |
| Modifier and Type | Field and Description |
|---|---|
| public static final DistinctResultTransformer | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Object | Returns: The singleton instance :INSTANCESerialization hook for ensuring singleton uniqueing. |
| public List | transformList(List<E>
The result. list)Overrides org. Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final DistinctResultTransformer INSTANCE | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| DistinctResultTransformer | back to summary |
|---|---|
| private DistinctResultTransformer() Disallow instantiation of DistinctResultTransformer. | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() Serialization hook for ensuring singleton uniqueing. | |
| transformList | back to summary |
|---|---|
| public List Overrides org. Implements org. Uniquely distinct each tuple row here.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int |
| entity | back to summary |
|---|---|
| pack-priv final Object entity | |
| Identity | back to summary |
|---|---|
| private Identity(Object entity) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |