T
- the type of the data associated with the tagpublic final class Tag<T> extends Object implements Comparable<Tag<?>>, Serializable
Tags are also used by hash-join and co-group builder objects. The same
tag supplied to the builder is used to retrieve the data from the
heterogeneous maps (ItemsByTag
) that appear in the output.
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Tag<?> that) |
boolean |
equals(Object obj) |
int |
hashCode() |
int |
index()
Returns the index associated with this tag.
|
static <T> Tag<T> |
tag(int index)
Returns a tag object associated with the specified index.
|
static <T> Tag<T> |
tag0()
Returns the tag constant
TAG_0 . |
static <T> Tag<T> |
tag1()
Returns the tag constant
TAG_1 . |
static <T> Tag<T> |
tag2()
Returns the tag constant
TAG_2 . |
String |
toString() |
public static <T> Tag<T> tag(int index)
public int index()
public int compareTo(Tag<?> that)
compareTo
in interface Comparable<Tag<?>>
Copyright © 2024 Hazelcast, Inc.. All rights reserved.