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

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

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

import java.util.List;
import java.util.Map;
import java.util.Set;

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

    private final Map> response;

    public SynDumpResponse(Map> response) {
        this.response = response;
    }

    /**
     * Gets the list of synonyms.
     *
     * @param word the group name
     * @return the list
     */
    public List synonym(String word) {
        return response.get(word);
    }

    /**
     * @return the name of the groups.
     */
    public Set groups() {
        return response.keySet();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy