fallbackCache.storeQuery(result, keyspace.toString(), columnFamily.getName(), Arrays.toString(rowKeys), String.valueOf(startKey), String.valueOf(endKey), startToken, endToken, String.valueOf(maxRows), Arrays.toString(columns)); } else { fallbackCache.storeQuery(result, keyspace.toString(), columnFamily.getName(), Arrays.toString(rowKeys), String.valueOf(startKey), String.valueOf(endKey), startToken, endToken, String.valueOf(maxRows));
fallbackCache.storeQuery(result, keyspace.toString(), columnFamily.getName(), Arrays.toString(rowKeys), String.valueOf(startKey), String.valueOf(endKey), startToken, endToken, String.valueOf(maxRows), Arrays.toString(columns)); } else { fallbackCache.storeQuery(result, keyspace.toString(), columnFamily.getName(), Arrays.toString(rowKeys), String.valueOf(startKey), String.valueOf(endKey), startToken, endToken, String.valueOf(maxRows));
@Override protected Rows<RowKeyType, String> run() throws Exception { try { CqlResult<RowKeyType, String> cqlresult = keyspace.prepareQuery(columnFamily).withCql(cql).execute().getResult(); Rows<RowKeyType, String> result = cqlresult.getRows(); if (fallbackCache != null) { try { /* store the response in the cache for fallback if we have a cache */ fallbackCache.storeQuery(result, keyspace.toString(), columnFamily.getName(), cql); } catch (Exception e) { // don't blow up on cache population since this is non-essential } } return result; } catch (ConnectionException e) { throw e; } }
@Override protected Rows<RowKeyType, String> run() throws Exception { try { CqlResult<RowKeyType, String> cqlresult = keyspace.prepareQuery(columnFamily).withCql(cql).execute().getResult(); Rows<RowKeyType, String> result = cqlresult.getRows(); if (fallbackCache != null) { try { /* store the response in the cache for fallback if we have a cache */ fallbackCache.storeQuery(result, keyspace.toString(), columnFamily.getName(), cql); } catch (Exception e) { // don't blow up on cache population since this is non-essential } } return result; } catch (ConnectionException e) { throw e; } }