Thanks Dennis. I am sorry if this is obvious and I am missing it but I fail to see how one would go about getting the metadata information such as the java type for each each field in a binaryobject for a table defined by a queryentity.
On Fri, Mar 13, 2020 at 12:26 AM Denis Magda <dma...@apache.org> wrote: > Please check this example: > > https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/CacheClientBinaryPutGetExample.java#L124 > > and documentation: > > https://apacheignite.readme.io/docs/binary-marshaller#modifying-binary-objects-using-binaryobjectbuilder > > - > Denis > > > On Thu, Mar 12, 2020 at 9:20 PM narges saleh <snarges...@gmail.com> wrote: > >> Hello Ilya >> Can you provide some links/examples on how to use >> ignite.binary().type(field-name)? >> thanks. >> >> On Thu, Mar 12, 2020 at 10:31 AM Ilya Kasnacheev < >> ilya.kasnach...@gmail.com> wrote: >> >>> Hello! >>> >>> I don't think there is any utility, but you can use >>> ignite.binary().type(string) to clarify field types. >>> >>> Regards, >>> -- >>> Ilya Kasnacheev >>> >>> >>> чт, 12 мар. 2020 г. в 18:05, narges saleh <snarges...@gmail.com>: >>> >>>> Thanks Ilya. >>>> >>>> Is there any utility that returns the (java) field types for the query >>>> entity defined caches? I don't want to have to map jdbc types to java >>>> types. >>>> >>>> On Thu, Mar 12, 2020 at 6:41 AM Ilya Kasnacheev < >>>> ilya.kasnach...@gmail.com> wrote: >>>> >>>>> Hello! >>>>> >>>>> You can use JDBC's DatabaseMetaData for that. >>>>> >>>>> Please see >>>>> https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html >>>>> >>>>> Regards, >>>>> -- >>>>> Ilya Kasnacheev >>>>> >>>>> >>>>> чт, 12 мар. 2020 г. в 05:49, narges saleh <snarges...@gmail.com>: >>>>> >>>>>> Hi All, >>>>>> >>>>>> How would one extract, programmatically, the metadata for the >>>>>> fields/columns for a cache/table? I want to get the field names along >>>>>> with >>>>>> the data type for each field, say, for example, if the table is defined >>>>>> via >>>>>> queryentity or SQL/JDBC. >>>>>> >>>>>> thanks. >>>>>> >>>>>