ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Mashenkov <andrey.mashen...@gmail.com>
Subject Re: equivalent xml configuration with code.
Date Fri, 03 Feb 2017 13:33:56 GMT
Hi Shawn,
types whose fields are configured with CacheConfiguration.setIndexedTypes
method are internally turned into query entities [1]

Xml configuration will looks like this

<bean class="org.apache.ignite.configuration.CacheConfiguration">
       <property name="queryEntities">

        <list>
            <bean class="org.apache.ignite.cache.QueryEntity">
                <property name="keyType" value="java.lang.String"/>
                <property name="valueType" value="<some class>"/>

......


[1]
http://apacheignite.gridgain.org/docs/indexes#queryentity-based-configuration


On Fri, Feb 3, 2017 at 11:49 AM, Shawn Du <shawn.du@neulion.com.cn> wrote:

> Hi,
>
>
>
> CacheConfiguration cacheConfiguration = new CacheConfiguration();
>
> cacheConfiguration.setTypes(String.class, <some class>);
>
> cacheConfiguration.setIndexedTypes(String.class, <some class>);
>
>
>
> what’s equivalent xml configuration with above code?
>
>
>
> Thanks
>
> Shawn
>



-- 
С уважением,
Машенков Андрей Владимирович
Тел. +7-921-932-61-82

Best regards,
Andrey V. Mashenkov
Cerr: +7-921-932-61-82

Mime
View raw message