jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject DocumentStore.query limit parameter
Date Wed, 11 Dec 2013 16:02:59 GMT
>     /**
>      * Get a list of documents where the key is greater than a start value and
>      * less than an end value. The returned documents are immutable.
>      *
>      * @param <T> the document type
>      * @param collection the collection
>      * @param fromKey the start value (excluding)
>      * @param toKey the end value (excluding)
>      * @param indexedProperty the name of the indexed property (optional)
>      * @param startValue the minimum value of the indexed property
>      * @param limit the maximum number of entries to return
>      * @return the list (possibly empty)
>      */
>     @Nonnull
>     <T extends Document> List<T> query(Collection<T> collection,
>                                        String fromKey,
>                                        String toKey,
>                                        String indexedProperty,
>                                        long startValue,
>                                        int limit);

Is some kind of ordering implied? (Otherwise, how does "limit" make sense?)

Best regards, Julian

Mime
View raw message