public class Tuple<T> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
key |
protected Map<String,Object> |
metadata
Metadata allows the tuple to be extensible so that different services can read different properties without
the need for inheritance.
|
protected T |
value |
| Constructor and Description |
|---|
Tuple(String key,
T value) |
Tuple(String key,
T value,
Map<String,Object> metadata) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getKey() |
Map<String,Object> |
getMetadata()
Gets an immutable view of the current metadata
|
<T> T |
getMetadataValue(String key)
Gets a value for the metadata key for the current tuple.
|
T |
getValue() |
int |
hashCode() |
Set<String> |
metadataKeys()
Gets all keys from the metadata
|
String |
toString() |
Copyright © 2017 Calrissian. All rights reserved.