All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.redis.datasource.search.SearchQueryResponse Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.redis.datasource.search;

import java.util.Collections;
import java.util.List;

/**
 * Represents the response of a {@code ft.search} command.
 */
public class SearchQueryResponse {

    private final int count;
    private final List documents;

    public SearchQueryResponse(int count, List documents) {
        this.count = count;
        this.documents = Collections.unmodifiableList(documents);
    }

    /**
     * @return the number of documents
     */
    public int count() {
        return count;
    }

    /**
     * @return the documents
     */
    public List documents() {
        return documents;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy