I use thrift .I want do paging logic.How to do?
for example in java I can do it
Class Page{
public int total;
public int pageSize;
public int pageNum;
public int totalPageNum;
public List<T> elements;
}
Page findXx(){
return page;
}
how to do it with thrift . thrift does not support generic
you can use map to do it。 but it is ugly。