@ View ( name = "by_type_and_local_date_time" , map = "function(doc) { emit([doc.type, doc.creationTime], doc) }" ) public List < CouchDbCasEvent > findByTypeSince ( final String type , final LocalDateTime localDateTime ) { val view = createQuery ( "by_type_and_local_date_time" ) . startKey ( ComplexKey . of ( type , localDateTime ) ) . endKey ( ComplexKey . of ( type , LocalDateTime . now ( ) ) ) ; return db . queryView ( view , CouchDbCasEvent . class ) ; }
Fund by type since a given date .