package com.jiuqi.lbsinterface.manager;
import java.util.List;
import com.jiuqi.lbsinterface.exception.IndexOutException;
/**
* 数据加载器
* @author modi
*
* @param <T>
*/
public interface ILoadDataHandler<T> {
/**
* 当起始位置大于总条数时,返回异常
* @param startIndex
* @param endIndex
* @return
* @throws IndexOutException 起始位置大于总条数
*/
List<T> getData(long startIndex, long endIndex) throws IndexOutException;
/**
* @Title: getTotalCount
* @Description: 计算总条数
* @param @return 设定文件
* @return long 返回类型
* @throws
*/
long getTotalCount();
}