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

io.quarkus.redis.datasource.search.AggregateDocument 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.Map;

/**
 * Represents a document from a {@code ft.aggregate} response.
 */
public class AggregateDocument {

    private final Map properties;

    public AggregateDocument(Map properties) {
        this.properties = properties == null ? Collections.emptyMap() : Collections.unmodifiableMap(properties);
    }

    /**
     * @return the document properties
     */
    public Map properties() {
        return properties;
    }

    /**
     * Gets a property from the document.
     *
     * @param name the property name, must not be {@code null}
     * @return the property, {@code null} if not found
     */
    public Document.Property property(String name) {
        return properties.get(name);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy