public Frame call() { final Service.FetchResponse response = service.apply( new Service.FetchRequest(h.connectionId, h.id, offset, fetchMaxRowCount)); if (response.missingStatement) { throw new RuntimeException(new NoSuchStatementException(h)); } if (response.missingResults) { throw new RuntimeException(new MissingResultsException(h)); } return response.frame; } });
public Frame call() { final Service.FetchResponse response = service.apply( new Service.FetchRequest(h.connectionId, h.id, offset, fetchMaxRowCount)); if (response.missingStatement) { throw new RuntimeException(new NoSuchStatementException(h)); } if (response.missingResults) { throw new RuntimeException(new MissingResultsException(h)); } return response.frame; } });
public Frame call() { final Service.FetchResponse response = service.apply( new Service.FetchRequest(h.connectionId, h.id, offset, fetchMaxRowCount)); if (response.missingStatement) { throw new RuntimeException(new NoSuchStatementException(h)); } if (response.missingResults) { throw new RuntimeException(new MissingResultsException(h)); } return response.frame; } });
public Frame fetch(StatementHandle h, long offset, int fetchMaxRowCount) throws NoSuchStatementException, MissingResultsException { LOG.trace("fetching {} offset:{} fetchMaxRowCount:{}", h, offset, fetchMaxRowCount); try { final StatementInfo statementInfo = statementCache.getIfPresent(h.id); if (null == statementInfo) { // Statement might have expired, or never existed on this server. throw new NoSuchStatementException(h); } if (!statementInfo.isResultSetInitialized()) { // The Statement exists, but the results are missing. Need to call syncResults(...) throw new MissingResultsException(h); } if (statementInfo.getResultSet() == null) { return Frame.EMPTY; } else { return JdbcResultSet.frame(statementInfo, statementInfo.getResultSet(), offset, fetchMaxRowCount, calendar, Optional.<Meta.Signature>absent()); } } catch (SQLException e) { throw propagate(e); } }
public Frame fetch(StatementHandle h, long offset, int fetchMaxRowCount) throws NoSuchStatementException, MissingResultsException { LOG.trace("fetching {} offset:{} fetchMaxRowCount:{}", h, offset, fetchMaxRowCount); try { final StatementInfo statementInfo = statementCache.getIfPresent(h.id); if (null == statementInfo) { // Statement might have expired, or never existed on this server. throw new NoSuchStatementException(h); } if (!statementInfo.isResultSetInitialized()) { // The Statement exists, but the results are missing. Need to call syncResults(...) throw new MissingResultsException(h); } if (statementInfo.getResultSet() == null) { return Frame.EMPTY; } else { return JdbcResultSet.frame(statementInfo, statementInfo.getResultSet(), offset, fetchMaxRowCount, calendar, Optional.<Meta.Signature>absent()); } } catch (SQLException e) { throw propagate(e); } }