@View(name = "by_recordKey", map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordKey, doc) } }")
    public CouchDbMultifactorAuthenticationTrustRecord findByRecordKey(final String recordKey) {
        return db.queryView(createQuery("by_recordKey").key(recordKey).limit(1), CouchDbMultifactorAuthenticationTrustRecord.class)
            .stream().findFirst().orElse(null);
    }
@ View ( name = "by_recordKey" , map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordKey, doc) } }" ) public CouchDbMultifactorAuthenticationTrustRecord findByRecordKey ( final String recordKey ) { return db . queryView ( createQuery ( "by_recordKey" ) . key ( recordKey ) . limit ( 1 ) , CouchDbMultifactorAuthenticationTrustRecord . class ) . stream ( ) . findFirst ( ) . orElse ( null ) ; }
Find by recordKey.
@param recordKey record key to search for
@return trust records for given input