Hi,

I have created bean which aligns to my table structure as shown below and
add data to it. While pulling data from cache I need to do some aggregation
on data and then create service using the data. Ignite provides rest-api but
I did not see any variant where I just use that api by mentioning my cache
name and add my data say aggregated(a), b, aggregated(c) as params into URL
and access it directly.

1. Is there a way to do this or should I write my own services using
jetty/spring?
2. If yes, please provide me some sample implementation.

public class TableA implements Serializable {

        private static final long serialVersionUID = 1L;

    @QuerySqlField(index = true)
    public int a;

    @QuerySqlField
    public Date b;

    @QuerySqlField
    public int c;
 
    public TableA(int a, Date b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

}




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Rest-api-Creating-service-to-read-data-from-cache-tp6788.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to