use of com.cloudant.client.api.views.Key.ComplexKey in project sw360 by eclipse.
the class ModerationRequestRepository method prepareKeys.
private List<ComplexKey> prepareKeys(String moderator, boolean ascending) {
ComplexKey startKey, endKey;
if (ascending) {
startKey = Key.complex(new String[] { moderator });
endKey = Key.complex(new String[] { moderator, "\ufff0" });
} else {
startKey = Key.complex(new String[] { moderator, "\ufff0" });
endKey = Key.complex(new String[] { moderator });
}
return List.of(startKey, endKey);
}
Aggregations