I am trying to perform an in operation for a tuple that has a byte[] attached to it (if the values are only regular Strings there is no problem at all).
For example:
ITuple tuple = new Tuple();
tuple.addActual("TEST");
tuple.addActual(new byte[]{1,2,3});
tuple.addActual("SATELLITE DATA");
When this tuple is written to the space, an agent that is looking for a tuple like:
ITuple template = new Tuple();
template.addActual("TEST");
template.addActual(new byte[]{1,2,3});
template.addFormal(String.class);
does not get the tuple.
If we remove the byte[] from the tuple, everything works fine.
Does anyone knows how can I implement this? Is it a bug? Did I misunderstand the template usage?
Thanks in advance.
Marcelo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to perform an in operation for a tuple that has a byte[] attached to it (if the values are only regular Strings there is no problem at all).
For example:
ITuple tuple = new Tuple();
tuple.addActual("TEST");
tuple.addActual(new byte[]{1,2,3});
tuple.addActual("SATELLITE DATA");
When this tuple is written to the space, an agent that is looking for a tuple like:
ITuple template = new Tuple();
template.addActual("TEST");
template.addActual(new byte[]{1,2,3});
template.addFormal(String.class);
does not get the tuple.
If we remove the byte[] from the tuple, everything works fine.
Does anyone knows how can I implement this? Is it a bug? Did I misunderstand the template usage?
Thanks in advance.
Marcelo