ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgarg <pg...@gridgain.com>
Subject Re: IgniteCheckedException: Indexing is disabled.
Date Fri, 08 May 2015 22:44:49 GMT
/commented by chaminda hettigoda/

SqlQuery sql = new SqlQuery("from ActiveNode"); try {
QueryCursor<Cache.Entry&lt;Object, CacheObject>> cursor = cache.query(sql);
for (Cache.Entry<Object, CacheObject> e : cursor) {
cacheObjects.add(e.getValue()); } } catch (Exception e) {
logger.error(e.getMessage(), e); }

public class ActiveNode extends CacheObject implements Serializable{ //ID of
the Node //@GridCacheQuerySqlField(index = true) @QuerySqlField private
String nodeID = "";

//When this Node did the last DB updates.
// @GridCacheQuerySqlField(index = true) @QuerySqlField Date lastUsedTime =

<property name="cacheConfiguration"> <list>  <bean parent="cache-template">
<property name="name" value="test"/> <property name="cacheMode"
value="LOCAL"/> <property name="atomicityMode" value="TRANSACTIONAL"/>
<property name="backups" value="0"/> <property
name="writeSynchronizationMode" value="PRIMARY_SYNC"/> <property
name="queryIndexEnabled" value="true"/> </bean>

/This post is migrated from now discontinued Apache Ignite forum at 

View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IgniteCheckedException-Indexing-is-disabled-tp50p52.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message