I'm trying to get the value of the tuple by the String but when i'm doing it getting an error saying
incompatible types: java.lang.Object cannot be converted to java.lang.String
this is how I'm Trying.
` public void execute(Tuple tuple) {
String field = tuple.getValueByField("name");
for(String user:field.split(","))}`
I tried like this by casting the string
String field = (String) tuple.getValueByField("name");
Is this a correct way to get the value of the tuple by the field name?
Tupleclass are you using?