> What was returned as the type name before? As I see from your code that you
used some getter to retrieve the name.
I have a IgniteCache<BinaryObject, BinaryObject>. The type name for the key
object before was a string "My_Object_ValueType" and "My_Object_KeyType". I
didn't follow why doesn't it work with these typenames.
I do not have POJO's in my data model. The data model is dynamic and hence I
use BinaryObject.
> The columns can be located in both a key and a value. The column names
> must be unique across the key and the value. After that you can use basic
> SQL query to get a result set basing on columns’ values.
With my IgniteCache<BinaryObject, BinaryObject> c = ...
My cache population code looks like
BinaryObjectBuilder keyBuilder =
ignite.binary().builder("My_Object_KeyType");
keyBuilder.setField("F1", "ABC");
BinaryObjectBuilder valueBuilder =
ignite.binary().builder("My_Object_ValueType");
valueBuilder.setField("F2", "XYZ");
c.put(keyBuilder.build(), valueBuilder.build());
How do I query F1 and F2 in a single sql query?
Thanks.
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Error-while-loading-data-into-cache-with-BinaryObject-as-key-field-tp6014p6024.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.