@Test public void testDesc() { List<QueryPojo> found = dao.find().eq("key", PARTITION_KEY_VALUE).desc("timestamp").build().execute().list(); assertEquals(3, found.size()); assertEquals(now, found.get(2).getTimestamp()); assertEquals(now.plusDays(1), found.get(1).getTimestamp()); assertEquals(now.plusDays(2), found.get(0).getTimestamp()); }
@Override public PojoQueryBuilder<P> desc(String facetName) { select.orderBy(QueryBuilder.desc(binding(facetName).getColumnName())); return this; }
DefaultPojoQueryBuilder implements PojoQueryBuilder<P> { @Override public PojoQueryBuilder<P> desc(String facetName) { select.orderBy(QueryBuilder.desc(binding(facetName).getColumnName())); return this; } }
DefaultPojoQueryBuilder implements PojoQueryBuilder<P> { @Override public PojoQueryBuilder<P> desc(String facetName) { select.orderBy(QueryBuilder.desc(binding(facetName).getColumnName())); return this; } DefaultPojoQueryBuilder(Session session, PojoBinding<P> pojoBinding, String tableName, PojoQueryContextFactory contextFactory, Executor executor); }
DefaultPojoQueryBuilder implements PojoQueryBuilder<P> { @Override public PojoQueryBuilder<P> desc(String facetName) { select.orderBy(QueryBuilder.desc(binding(facetName).getColumnName())); return this; } DefaultPojoQueryBuilder(Session session, PojoBinding<P> pojoBinding, String tableName, PojoQueryContextFactory contextFactory, Executor executor); @Override PojoQueryBuilder<P> asc(String facetName); @Override PojoQuery<P> build(); @Override PojoQueryBuilder<P> desc(String facetName); @Override PojoQueryBuilder<P> eq(String facetName); @Override PojoQueryBuilder<P> eq(String facetName, Object value); @Override PojoQueryBuilder<P> gt(String facetName); @Override PojoQueryBuilder<P> gt(String facetName, Object value); @Override PojoQueryBuilder<P> gte(String facetName); @Override PojoQueryBuilder<P> gte(String facetName, Object value); @Override PojoQueryBuilder<P> in(String facetName); @Override PojoQueryBuilder<P> in(String facetName, Iterable<Object> values); @Override PojoQueryBuilder<P> lt(String facetName); @Override PojoQueryBuilder<P> lt(String facetName, Object value); @Override PojoQueryBuilder<P> lte(String facetName); @Override PojoQueryBuilder<P> lte(String facetName, Object value); }
DefaultPojoQueryBuilder implements PojoQueryBuilder<P> { @Override public PojoQueryBuilder<P> desc(String facetName) { select.orderBy(QueryBuilder.desc(binding(facetName).getColumnName())); return this; } DefaultPojoQueryBuilder(Session session, PojoBinding<P> pojoBinding, String tableName, PojoQueryContextFactory contextFactory, Executor executor); @Override PojoQueryBuilder<P> asc(String facetName); @Override PojoQuery<P> build(); @Override PojoQueryBuilder<P> desc(String facetName); @Override PojoQueryBuilder<P> eq(String facetName); @Override PojoQueryBuilder<P> eq(String facetName, Object value); @Override PojoQueryBuilder<P> gt(String facetName); @Override PojoQueryBuilder<P> gt(String facetName, Object value); @Override PojoQueryBuilder<P> gte(String facetName); @Override PojoQueryBuilder<P> gte(String facetName, Object value); @Override PojoQueryBuilder<P> in(String facetName); @Override PojoQueryBuilder<P> in(String facetName, Iterable<Object> values); @Override PojoQueryBuilder<P> lt(String facetName); @Override PojoQueryBuilder<P> lt(String facetName, Object value); @Override PojoQueryBuilder<P> lte(String facetName); @Override PojoQueryBuilder<P> lte(String facetName, Object value);  }