Java Examples for org.apache.cassandra.service.SliceRange
The following java examples will help you to understand the usage of org.apache.cassandra.service.SliceRange. These source code samples are taken from different open source projects.
Example 1
Project: eQTL-GWT-Cassandra-master File: CassandraSession.java View source code |
public List<ColumnOrSuperColumn> getIndex(String indexName, boolean reverse, int limit) { final SliceRange slice_range = new SliceRange(new byte[0], new byte[0], reverse, limit); final SlicePredicate slice_predicate = new SlicePredicate(null, slice_range); while (true) { try { return client.get_slice("expressionqtl", indexName, new ColumnParent("indices", null), slice_predicate, ConsistencyLevel.ONE); } catch (InvalidRequestException e) { e.printStackTrace(); } catch (UnavailableException e) { e.printStackTrace(); } catch (TimedOutException e) { e.printStackTrace(); } catch (TException e) { e.printStackTrace(); } sleep1s(); } }