code: public <T> SQLResult<T> fetchQueryByCursor(Class<T> beanType, String cursor, ColumnMeta[] metas) throws ElasticSearchException{
  		if(cursor == null ){
  			return null;
  		}
  		SQLRestResponse result = this.client.executeRequest("/_xpack/sql",
  				new StringBuilder().append("{\"cursor\": \"").append(cursor).append("\"}").toString(),
  				new SQLRestResponseHandler());
  
  		SQLResult<T> datas = ResultUtil.buildFetchSQLResult(  result,  beanType,  metas);
  		datas.setClientInterface(this);
  		return datas;
  	}
docs: 发送es restful sql请求下一页数据，获取返回值，返回值类型由beanType决定
  https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest.html
  @param beanType
  @param cursor
  @param metas
  @param <T>
  @return
  @throws ElasticSearchException