Hi,
I am adding data to cache in below format -
"cache.putAll(finalMap)" and cache is of format "IgniteCache<Integer,
SalesModel> cache". "finalMap" looks like "finalMap.put(storeId,
salesModel)". SalesModel structure is shown below. I am not able to get data
using any of the "rest-api" provided or JDBC api and I have confirmed that
salesModel contains data before adding. Please let me know the reason and
what can be done to fetch data.
package com.target.ignite.model.sales;
import java.io.Serializable;
import java.sql.Date;
import org.apache.ignite.cache.query.annotations.QuerySqlField;
public class SalesModel implements Serializable {
private static final long serialVersionUID = 1L;
/** SalesModel: id (not-indexed). */
@QuerySqlField
public String id;
/** SalesModel: storeId (not-indexed). */
@QuerySqlField
public int storeId;
/** SalesModel: date (not-indexed). */
@QuerySqlField
public String date;
/** TdyFeedModel: tdy (not-indexed). */
@QuerySqlField
public TdyFeedModel day;
/** YstFeedModel: yst (not-indexed). */
@QuerySqlField
public WtdFeedModel previousDay;
/** WtdFeedModel: wtd (not-indexed). */
@QuerySqlField
public WtdFeedModel weekToDate;
/** MtdFeedModel: mtd (not-indexed). */
@QuerySqlField
public MtdFeedModel monthToDate;
//setters and getters for all variables
}
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Not-able-to-retrieve-data-from-cache-tp7533.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.